Class LocalTimeServer
java.lang.Object
org.episteme.social.history.clock.TimeServer
org.episteme.social.history.clock.LocalTimeServer
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 Summary
ConstructorsConstructorDescriptionCreates a new LocalTimeServer with a default update interval of 1 second.LocalTimeServer(long intervalMs) Creates a new LocalTimeServer with a custom update interval. -
Method Summary
Methods inherited from class TimeServer
addTimeListener, dispatchTimeEvent, getTimeListeners, removeTimeListener
-
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:TimeServerActivates the time server, initiating update broadcasts.- Specified by:
startin classTimeServer
-
stop
public void stop()Description copied from class:TimeServerDeactivates the time server, halting all broadcasts.- Specified by:
stopin classTimeServer
-