Class NtpSyncTimerTask

  • All Implemented Interfaces:
    Runnable

    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 Detail

      • NtpSyncTimerTask

        public NtpSyncTimerTask()
        Initializes NTPUpdateTask with server URL and port, either from system properties or defaults.
    • Method Detail