Package com.peterphi.usermanager.daemon
Class DeleteExpiredSessionDaemon
java.lang.Object
com.peterphi.std.threading.Daemon
com.peterphi.std.guice.common.daemon.GuiceDaemon
com.peterphi.std.guice.common.daemon.GuiceRecurringDaemon
com.peterphi.usermanager.daemon.DeleteExpiredSessionDaemon
- All Implemented Interfaces:
GuiceLifecycleListener
,StoppableService
,Runnable
-
Field Summary
Fields inherited from class com.peterphi.std.guice.common.daemon.GuiceRecurringDaemon
sleepTime
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
protected void
execute()
Run one iteration of the daemonMethods inherited from class com.peterphi.std.guice.common.daemon.GuiceRecurringDaemon
executeException, getCalls, getExceptions, getInitialSleepTime, getLastRan, getSleepTime, isUserCodeRunning, makeNextRunVerbose, postConstruct, run, setSleepTime, setSleepTimeFromConfigIfSet, shouldContinue, trigger
Methods inherited from class com.peterphi.std.guice.common.daemon.GuiceDaemon
getBreaker, getBreakerNames, getName, getThreadName, notifyBreakerChange, shouldStartAsDaemon, shutdown, sleep, sleep
Methods inherited from class com.peterphi.std.threading.Daemon
getTextState, getTextStateUpdated, getThread, isRunning, isThreadRunning, setTextState, startThread, startThread, stopAll, stopThread, waitForTermination, waitForTermination
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.peterphi.std.guice.common.shutdown.iface.StoppableService
preShutdown
-
Constructor Details
-
DeleteExpiredSessionDaemon
public DeleteExpiredSessionDaemon()
-
-
Method Details
-
execute
Description copied from class:GuiceRecurringDaemon
Run one iteration of the daemon- Specified by:
execute
in classGuiceRecurringDaemon
- Throws:
Exception
- if an exception occurs (the exception will be passed toGuiceRecurringDaemon.executeException(Throwable)
but otherwise ignored)
-
deleteExpiredDelegatedTokens
public int deleteExpiredDelegatedTokens() -
deleteExpiredSessions
public int deleteExpiredSessions()
-