java.lang.Object
org.tentackle.task.AbstractTask
org.tentackle.session.AbstractSessionTask
- All Implemented Interfaces:
Serializable,Comparable<Task>,Runnable,SessionDependable,SessionProvider,Task
A task being executed by the
SessionTaskDispatcher.- Author:
- harald
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the db the runnable must use.booleanReturns whether the session is immutable.voidsetSession(Session session) Sets the db.
Done bySessionTaskDispatcher.voidsetSessionImmutable(boolean sessionImmutable) Sets the session to immutable.Methods inherited from class org.tentackle.task.AbstractTask
addTaskListener, compareTo, equals, fireCompleted, fireStarted, getCause, getCompleted, getDispatcher, getId, getRepeatInterval, getResult, getScheduledEpochalTime, getStarted, hashCode, isInterruptable, removeTaskListener, setCause, setCompleted, setDispatcher, setId, setRepeatInterval, setResult, setScheduledEpochalTime, setStarted, toString
-
Constructor Details
-
AbstractSessionTask
public AbstractSessionTask()Parent constructor.
-
-
Method Details
-
setSession
Sets the db.
Done bySessionTaskDispatcher.- Specified by:
setSessionin interfaceSessionDependable- Parameters:
session- the session
-
getSession
Gets the db the runnable must use.- Specified by:
getSessionin interfaceSessionProvider- Returns:
- the db
-
setSessionImmutable
public void setSessionImmutable(boolean sessionImmutable) Description copied from interface:SessionDependableSets the session to immutable.- Specified by:
setSessionImmutablein interfaceSessionDependable- Parameters:
sessionImmutable- true if session cannot be changed anymore
-
isSessionImmutable
public boolean isSessionImmutable()Description copied from interface:SessionDependableReturns whether the session is immutable.- Specified by:
isSessionImmutablein interfaceSessionDependable- Returns:
- true if immutable
-