S- the type of state
E- the type of event
public class DistributedLeaderAction<S,E> extends java.lang.Object implements Action<S,E>
Actionwhich is used to wrap execution of an
Actionso that only a
StateMachineconsidered to be a leader in an
StateMachineEnsemblewill do the execution. Executing action via
DistributedLeaderActionis bound to if current machine is a leader or not. Effectively this means that if leader doesn't exist, execution is discarded.
|Constructor and Description|
Instantiates a new distributed leader action.
|Modifier and Type||Method and Description|
Execute action with a