public interface SessionTaskDispatcher extends TaskDispatcher
| Modifier and Type | Method and Description |
|---|---|
Session |
getSession()
Gets the session.
|
boolean |
isSessionClosedOnTermination()
Returns whether the session should be closed on termination.
|
boolean |
isSessionKeptAlive()
Gets the keepalive flag.
|
void |
setSession(Session session)
Sets the session.
|
void |
setSessionClosedOnTermination(boolean sessionClosedOnTermination)
Sets whether the session should be closed on termination.
|
void |
setSessionKeptAlive(boolean sessionKeptAlive)
Sets the keepalive flag.
If set, setAlive() will be invoked periodically to keep the session alive. |
addTask, addTaskAndWait, addTaskListener, getAllTasks, getDeadInterval, getQueueSize, getShutdownIdleTimeout, getSleepInterval, getTask, isAlive, isInstanceOfTaskPending, isQueueEmpty, isTaskPending, isUsingMutexLocking, lock, removeTask, removeTaskListener, setDeadInterval, setShutdownIdleTimeout, setSleepInterval, setUsingMutexLocking, start, toDiagnosticString, unlock, waitForTaskisTerminationRequested, requestTermination, terminateSession getSession()
void setSession(Session session)
session - the sessionTaskException - if dispatcher is already running or not invoked from the dispatcher threadvoid setSessionKeptAlive(boolean sessionKeptAlive)
sessionKeptAlive - true if ping enabledboolean isSessionKeptAlive()
boolean isSessionClosedOnTermination()
void setSessionClosedOnTermination(boolean sessionClosedOnTermination)
sessionClosedOnTermination - true if should be closed, false if remains openTentackle - distributed, domain- and model-driven