Package com.tangosol.util.fsm
Interface ExecutionContext
- All Known Implementing Classes:
NonBlockingFiniteStateMachine
public interface ExecutionContext
Provides contextual information about a
FiniteStateMachine
,
typically to aid in runtime decision making for actions
(eg: TransitionAction
s, StateEntryAction
s and/or
StateExitAction
s) and Event
s.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Obtains the name of theFiniteStateMachine
that produced theExecutionContext
.long
Obtains the number of successful transitions that have occurred on theFiniteStateMachine
thus far.
-
Method Details
-
getName
String getName()Obtains the name of theFiniteStateMachine
that produced theExecutionContext
.- Returns:
- the name of the
FiniteStateMachine
-
getTransitionCount
long getTransitionCount()Obtains the number of successful transitions that have occurred on theFiniteStateMachine
thus far.- Returns:
- the number of transitions that have occurred on the
FiniteStateMachine
-