| Modifier and Type | Field and Description |
|---|---|
static Status |
Status.ABORT
Abort the operation
|
static Status |
Status.PROCEED
Proceed with the operation
|
| Modifier and Type | Method and Description |
|---|---|
static Status |
Status.forward(Message message)
Creates an status to request the emission of a new
message.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
FunctionMessageFilter.onDispatch(C context)
Delegates the execution of the message dispatch
to the dispatch function registered with the message.
|
Status |
MessageFilter.onDispatch(C context)
Intercepts a message to be dispatched to the
given destination.
|
Status |
FunctionMessageFilter.onReceive(C context)
Delegates the execution of the message processing
to the reception function registered with the message.
|
Status |
MessageFilter.onReceive(C context)
Intercepts a message to be received from the
given origin.
|
| Modifier and Type | Method and Description |
|---|---|
Function<C,Status> |
FunctionMessageFilter.getDispatchHandler(@NonNull Message message)
Retrieves the dispatch handler for the given message
|
Function<C,Status> |
FunctionMessageFilter.getReceptionHandler(@NonNull Message message)
Retrieves the reception handler for the given message
|
| Modifier and Type | Method and Description |
|---|---|
Status |
TransitionChecker.validateArrival(Envelope<N,M> envelope)
Validates the arrival to a given target state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
|
Status |
TransitionChecker.validateDeparture(Envelope<N,M> envelope)
Validates the departure from the current state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
|
| Modifier and Type | Method and Description |
|---|---|
StateMachineBuilder.OnBuilder |
StateMachineBuilder.ToBuilder.leaving(Function<StateContext,Status> handler)
Adds a filtering function for triggering messages from origin state
of the transition by transforming the current origin state into
a
FilteredState. |
StateMachineBuilder.OnBuilder |
StateMachineBuilder.OnBuilder.leaving(Function<StateContext,Status> handler)
Adds a filtering function for triggering messages from origin state
of the transition by transforming the current origin state into
a
FilteredState. |
| Modifier and Type | Method and Description |
|---|---|
Status |
StateTransitionChecker.validateArrival(Envelope<State,Message> envelope)
Validates the arrival to a given target state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
|
Status |
StateTransitionChecker.validateDeparture(Envelope<State,Message> envelope)
Validates the departure from the current state upon reception
of a given message using the specified transition index to ensure
transitions are accepted.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
AbstractFilteredState.onDispatch(StateContext context)
Intercepts a message to be dispatched to the
given destination.
|
Status |
AbstractFilteredState.onReceive(StateContext context)
Intercepts a message to be received from the
given origin.
|
| Modifier and Type | Method and Description |
|---|---|
static InfoStatus |
InfoStatus.from(@NonNull Status status,
@NonNull Event event)
Static factory method to create the wrapped
information status instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FilteredState.setDispatchHandler(Function<StateContext,Status> dispatchHandler)
Sets the dispatch handler for ANY message
|
abstract void |
AbstractFilteredState.setDispatchHandler(Function<StateContext,Status> dispatchHandler)
Sets the dispatch handler for ANY message
|
void |
FilteredState.setDispatchHandler(Message message,
Function<StateContext,Status> dispatchHandler)
Sets the dispatch handler for the given message
|
abstract void |
AbstractFilteredState.setDispatchHandler(Message message,
Function<StateContext,Status> dispatchHandler)
Sets the dispatch handler for the given message
|
void |
FilteredState.setReceptionHandler(Function<StateContext,Status> receptionHandler)
Sets the reception handler for ANY message
|
abstract void |
AbstractFilteredState.setReceptionHandler(Function<StateContext,Status> receptionHandler)
Sets the reception handler for ANY message
|
void |
FilteredState.setReceptionHandler(Message message,
Function<StateContext,Status> receptionHandler)
Sets the reception handler for the given message
|
abstract void |
AbstractFilteredState.setReceptionHandler(Message message,
Function<StateContext,Status> receptionHandler)
Sets the reception handler for the given message
|
Copyright © 2019 state-machine. All rights reserved.