-
- All Implemented Interfaces:
-
cz.encircled.joiner.reactive.ExecutionStep,cz.encircled.joiner.reactive.OuterScopeExecution
public final class MonoCallbackOuterScopeExecution<T extends Object, E extends Object> implements OuterScopeExecution<E>
-
-
Constructor Summary
Constructors Constructor Description MonoCallbackOuterScopeExecution(Function1<T, E> callback)
-
Method Summary
Modifier and Type Method Description CompletableFuture<List<E>>perform(Object arg)Execute a user callback or return pre-computed value ObjectconvertResult(List<Object> arg)Convert step result if needed (e.g. -
-
Method Detail
-
perform
CompletableFuture<List<E>> perform(Object arg)
Execute a user callback or return pre-computed value
-
convertResult
Object convertResult(List<Object> arg)
Convert step result if needed (e.g. wrap as Optional in case of nullable steps, or extract a singular value in case of findOne)
- Parameters:
arg- initial step result, always passed as a List, even in case of functions like findOne
-
-
-
-