| Package | Description |
|---|---|
| com.github.pnavais.machine.builder | |
| com.github.pnavais.machine.model |
| 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 |
|---|---|
abstract MessageFilter<State,StateContext> |
AbstractFilteredState.getMessageFilter()
Retrieves the message filter
|
| 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 |
|---|---|
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.