public class SessionKeepAliveTask extends AbstractTask
ExecutorService to spawn asynchroneous pings.
This is necessary because a remote session
may block on slow or bad communication lines which should not block the whole task dispatcher.| Constructor and Description |
|---|
SessionKeepAliveTask(SessionKeepAliveDaemon daemon,
Session session,
long interval,
long timeOut)
Creates a keep alive task.
|
| Modifier and Type | Method and Description |
|---|---|
protected Callable<Boolean> |
createAliveCallable()
Creates the alive callable.
|
protected Callable<Boolean> |
createCloseCallable()
Creates the close callable.
|
void |
run() |
String |
toString() |
addTaskListener, compareTo, equals, fireCompleted, fireStarted, getCause, getCompleted, getDispatcher, getId, getRepeatInterval, getResult, getScheduledEpochalTime, getStarted, hashCode, isInterruptable, removeTaskListener, setCause, setCompleted, setDispatcher, setId, setRepeatInterval, setResult, setScheduledEpochalTime, setStartedpublic SessionKeepAliveTask(SessionKeepAliveDaemon daemon, Session session, long interval, long timeOut)
daemon - the keep alive daemonsession - the sessioninterval - the check interval in milliseconds, ≤ 0 to closetimeOut - the timeout interval in millisecondsTentackle - distributed, domain- and model-driven