public class ExecutionPipeline
extends java.lang.Object
Constructor and Description |
---|
ExecutionPipeline() |
Modifier and Type | Method and Description |
---|---|
static ExecutionPipeline |
empty() |
<X extends java.lang.Throwable,T> |
exceptionally(java.util.function.Function<X,T> fn) |
boolean |
isSequential() |
ExecutionPipeline |
onFail(java.util.function.Consumer<java.lang.Throwable> onFail) |
<T> ExecutionPipeline |
peek(java.util.function.Consumer<T> c) |
<T,R> ExecutionPipeline |
thenApply(java.util.function.Function<T,R> fn) |
<T,R> ExecutionPipeline |
thenApplyAsync(java.util.function.Function<T,R> fn,
java.util.concurrent.Executor exec) |
<T,R> ExecutionPipeline |
thenCompose(java.util.function.Function<T,java.util.concurrent.CompletableFuture<R>> fn) |
<T,R> ExecutionPipeline |
thenComposeAsync(java.util.function.Function<java.lang.Object,java.util.concurrent.CompletableFuture<?>> fn,
java.util.concurrent.Executor exec) |
FinalPipeline |
toFinalPipeline() |
<X extends java.lang.Throwable,T> |
whenComplete(java.util.function.BiConsumer<T,X> fn) |
public boolean isSequential()
public <T> ExecutionPipeline peek(java.util.function.Consumer<T> c)
public <T,R> ExecutionPipeline thenApplyAsync(java.util.function.Function<T,R> fn, java.util.concurrent.Executor exec)
public <T,R> ExecutionPipeline thenComposeAsync(java.util.function.Function<java.lang.Object,java.util.concurrent.CompletableFuture<?>> fn, java.util.concurrent.Executor exec)
public <T,R> ExecutionPipeline thenCompose(java.util.function.Function<T,java.util.concurrent.CompletableFuture<R>> fn)
public <T,R> ExecutionPipeline thenApply(java.util.function.Function<T,R> fn)
public <X extends java.lang.Throwable,T> ExecutionPipeline exceptionally(java.util.function.Function<X,T> fn)
public <X extends java.lang.Throwable,T> ExecutionPipeline whenComplete(java.util.function.BiConsumer<T,X> fn)
public FinalPipeline toFinalPipeline()
public static ExecutionPipeline empty()
public ExecutionPipeline onFail(java.util.function.Consumer<java.lang.Throwable> onFail)