public final class Actions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <S,E> Action<S,E> |
emptyAction()
Builds a noop
Action. |
static <S,E> Action<S,E> |
errorCallingAction(Action<S,E> action,
Action<S,E> errorAction)
Builds an error calling action
Action. |
static <S,E> java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> |
from(Action<S,E> action)
Builds a
Function from an Action. |
public static <S,E> Action<S,E> emptyAction()
Action.S - the type of stateE - the type of eventpublic static <S,E> Action<S,E> errorCallingAction(Action<S,E> action, Action<S,E> errorAction)
Action.S - the type of stateE - the type of eventaction - the actionerrorAction - the error actionpublic static <S,E> java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> from(Action<S,E> action)
Function from an Action.S - the type of stateE - the type of eventaction - the action