public class WorkflowStateConstant extends WorkflowState
Modifier and Type | Method and Description |
---|---|
void |
addListener(StateListener l)
Add a state change listener.
|
void |
assign(WorkflowStateConstant arg0)
Set a new state value.
|
boolean |
compareAndAssign(WorkflowStateConstant arg0,
WorkflowStateConstant arg1)
Moves to a new state (newState) if the current state is equal to a given
state (oldState)
|
void |
removeListener(StateListener l)
Remove a previously added state change listener.
|
equals, getConst, getFuture, hashCode, isCanceled, isCompleted, isFailed, isFinished, isInLimbo, isStarted, makeState, makeState, makeStateConstant, setCanceled, setCompleted, setFailed, setStarted, toStateConstant, toString
public void addListener(StateListener l)
WorkflowState
Add a state change listener.
addListener
in class WorkflowState
l
- A non null listener.public void assign(WorkflowStateConstant arg0)
WorkflowState
Set a new state value.
assign
in class WorkflowState
public boolean compareAndAssign(WorkflowStateConstant arg0, WorkflowStateConstant arg1)
WorkflowState
Moves to a new state (newState) if the current state is equal to a given state (oldState)
compareAndAssign
in class WorkflowState
arg0
- The presumed current state.arg1
- The new state.true
if the change was made and false
otherwise.public void removeListener(StateListener l)
WorkflowState
Remove a previously added state change listener.
removeListener
in class WorkflowState
l
- A non null listener.