Package com.microej.kernel.green.net
Class NtpSyncTimerTask
- java.lang.Object
-
- ej.bon.TimerTask
-
- com.microej.kernel.green.net.NtpSyncTimerTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class NtpSyncTimerTask extends ej.bon.TimerTask
NtpSyncTimerTask
periodically synchronizes the system time with a Network Time Protocol (NTP) server. This task retries failed synchronization attempts up to a maximum limit and schedules a recurring update every two hours if successful.
-
-
Constructor Summary
Constructors Constructor Description NtpSyncTimerTask()
Initializes NTPUpdateTask with server URL and port, either from system properties or defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-