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: TransitionActions, StateEntryActions and/or
StateExitActions) and Events.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Obtains the name of theFiniteStateMachinethat produced theExecutionContext.longObtains the number of successful transitions that have occurred on theFiniteStateMachinethus far.
-
Method Details
-
getName
String getName()Obtains the name of theFiniteStateMachinethat produced theExecutionContext.- Returns:
- the name of the
FiniteStateMachine
-
getTransitionCount
long getTransitionCount()Obtains the number of successful transitions that have occurred on theFiniteStateMachinethus far.- Returns:
- the number of transitions that have occurred on the
FiniteStateMachine
-