public class NtpSyncTimerTask extends 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 and Description |
|---|
NtpSyncTimerTask()
Initializes NTPUpdateTask with server URL and port, either from system properties or defaults.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The action to be performed by this timer task.
|
cancel, scheduledExecutionTime, uncaughtException