Package com.microej.kf.util.net
Class NtpSyncTimerTask
- java.lang.Object
-
- ej.bon.TimerTask
-
- com.microej.kf.util.net.NtpSyncTimerTask
-
- All Implemented Interfaces:
Runnable
public class NtpSyncTimerTask extends TimerTask
NtpSyncTimerTaskperiodically 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 voidrun()The action to be performed by this timer task.-
Methods inherited from class ej.bon.TimerTask
cancel, scheduledExecutionTime, uncaughtException
-
-