Class GuiceScheduledDaemon
java.lang.Object
com.peterphi.std.threading.Daemon
com.peterphi.std.guice.common.daemon.GuiceDaemon
com.peterphi.std.guice.common.daemon.GuiceRecurringDaemon
com.peterphi.std.guice.common.daemon.GuiceScheduledDaemon
- All Implemented Interfaces:
GuiceLifecycleListener,StoppableService,Runnable
- Direct Known Subclasses:
GuiceDailyDaemon
A recurring daemon that runs at particular scheduled times (although it can be triggered to run early)
-
Field Summary
Fields inherited from class com.peterphi.std.guice.common.daemon.GuiceRecurringDaemon
sleepTime -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.peterphi.std.guice.common.daemon.GuiceRecurringDaemon
execute, executeException, getCalls, getExceptions, getLastRan, isUserCodeRunning, makeNextRunVerbose, postConstruct, run, setSleepTime, setSleepTimeFromConfigIfSet, shouldContinue, triggerMethods inherited from class com.peterphi.std.guice.common.daemon.GuiceDaemon
getBreaker, getBreakerNames, getName, getThreadName, notifyBreakerChange, shouldStartAsDaemon, shutdown, sleep, sleepMethods inherited from class com.peterphi.std.threading.Daemon
getTextState, getTextStateUpdated, getThread, isRunning, isThreadRunning, setTextState, startThread, startThread, stopAll, stopThread, waitForTermination, waitForTerminationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.peterphi.std.guice.common.shutdown.iface.StoppableService
preShutdown
-
Constructor Details
-
GuiceScheduledDaemon
protected GuiceScheduledDaemon()
-
-
Method Details
-
getInitialSleepTime
- Overrides:
getInitialSleepTimein classGuiceRecurringDaemon
-
getSleepTime
- Overrides:
getSleepTimein classGuiceRecurringDaemon
-
getNextRunTime
-