public class SessionKeepAliveDaemon extends DefaultTaskDispatcher
Thread.State, Thread.UncaughtExceptionHandlerINSTANCE_COUNTERMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SessionKeepAliveDaemon(long minAliveInterval)
Creates the daemon.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
protected Task |
createAliveTask(Session session,
long interval)
Creates a keep alive task.
|
protected ExecutorService |
createExecutorService()
Creates the executor service.
|
ExecutorService |
getExecutorService()
Gets the executor service.
|
void |
keepAliveIntervalChanged(Session session)
Handles the change of a keep alive interval of a session.
|
void |
removeAliveTask(Session session)
Removes the task for given session.
|
void |
run() |
addTask, addTaskAndWait, addTaskListener, assertAlive, assertIntervalsInRange, assertNotAlive, assertNotKilled, createLock, executeTask, fireCompleted, fireStarted, getAllTasks, getDeadInterval, getQueueSize, getShutdownIdleTimeout, getSleepInterval, getTask, getTerminationCause, interrupt, isDead, isInstanceOfTaskPending, isKilled, isQueueEmpty, isTaskDispatcherThread, isTaskPending, isTerminationRequested, isUsingMutexLocking, kill, lock, lockInternal, nextTask, removeTask, removeTaskListener, requestTermination, setDead, setDeadInterval, setShutdownIdleTimeout, setSleepInterval, setUsingMutexLocking, sleepForInterval, startedAt, terminate, terminatedAt, toDiagnosticString, unlock, unlockInternal, waitForTaskactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisAlive, startgetNamepublic SessionKeepAliveDaemon(long minAliveInterval)
minAliveInterval - the minimum alive intervalprotected void cleanup()
cleanup in class DefaultTaskDispatcherpublic void run()
run in interface Runnablerun in class DefaultTaskDispatcherpublic void keepAliveIntervalChanged(Session session)
session - the sessionpublic void removeAliveTask(Session session)
session - the sessionpublic ExecutorService getExecutorService()
protected ExecutorService createExecutorService()
Tentackle - distributed, domain- and model-driven