Package com.tangosol.coherence.servlet
Interface SessionHelper.Task
- All Superinterfaces:
Runnable
- Enclosing class:
SessionHelper
Interface for detecting when a Runnable Task has completed.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisDone()Indicate if the task has completed.booleanIndicates wheter the task has succeeded (accomplished what it was intended to do) or not.voidsetDone(boolean fDone) Specify if the task has completed.voidsetSucceeded(boolean fSucceeded) Specify whether the task has succeeded or not.
-
Method Details
-
setDone
void setDone(boolean fDone) Specify if the task has completed.- Parameters:
fDone- true if the task has completed its execution.
-
isDone
boolean isDone()Indicate if the task has completed.- Returns:
- true if the task has completed its execution
-
setSucceeded
void setSucceeded(boolean fSucceeded) Specify whether the task has succeeded or not.- Parameters:
fSucceeded- true if the task has succeeded.
-
isSucceeded
boolean isSucceeded()Indicates wheter the task has succeeded (accomplished what it was intended to do) or not.- Returns:
- true if the task has succeeded.
-