Class 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()  
      • Methods inherited from class ej.bon.TimerTask

        cancel, scheduledExecutionTime, uncaughtException
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NtpSyncTimerTask

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

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class ej.bon.TimerTask