Class LocalTimeServer

java.lang.Object
org.episteme.social.history.clock.TimeServer
org.episteme.social.history.clock.LocalTimeServer

public class LocalTimeServer extends TimeServer
A local time server that broadcasts modern wall-clock time updates at regular intervals. Uses a daemon Timer to periodically sample system time and notify listeners. * @version 1.1
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • LocalTimeServer

      public LocalTimeServer()
      Creates a new LocalTimeServer with a default update interval of 1 second.
    • LocalTimeServer

      public LocalTimeServer(long intervalMs)
      Creates a new LocalTimeServer with a custom update interval.
      Parameters:
      intervalMs - update frequency in milliseconds
  • Method Details

    • start

      public void start()
      Description copied from class: TimeServer
      Activates the time server, initiating update broadcasts.
      Specified by:
      start in class TimeServer
    • stop

      public void stop()
      Description copied from class: TimeServer
      Deactivates the time server, halting all broadcasts.
      Specified by:
      stop in class TimeServer