Class Actions
java.lang.Object
org.springframework.statemachine.action.Actions
Action Utilities.
- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
E> Action<S, E> Builds a noopAction
.static <S,
E> Action<S, E> errorCallingAction
(Action<S, E> action, Action<S, E> errorAction) Builds an error calling actionAction
.static <S,
E> Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> from
(Collection<Action<S, E>> actions) static <S,
E> Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>
-
Method Details
-
emptyAction
Builds a noopAction
.- Type Parameters:
S
- the type of stateE
- the type of event- Returns:
- an empty (Noop) Action.
-
errorCallingAction
Builds an error calling actionAction
.- Type Parameters:
S
- the type of stateE
- the type of event- Parameters:
action
- the actionerrorAction
- the error action- Returns:
- the error calling action
-
from
public static <S,E> Function<StateContext<S,E>, fromreactor.core.publisher.Mono<Void>> (Action<S, E> action) - Type Parameters:
S
- the type of stateE
- the type of event- Parameters:
action
- the action- Returns:
- the function
-
from
public static <S,E> Collection<Function<StateContext<S,E>, fromreactor.core.publisher.Mono<Void>>> (Collection<Action<S, E>> actions) - Type Parameters:
S
- the type of stateE
- the type of event- Parameters:
actions
- the actions- Returns:
- the function
-