Package graphql
Class EngineRunningState
java.lang.Object
graphql.EngineRunningState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U,
T> CompletableFuture <U> compose
(CompletableFuture<T> src, Function<? super T, ? extends CompletionStage<U>> fn) engineRun
(Supplier<CompletableFuture<ExecutionResult>> engineRun) Only used once outside of this class: when the execution starts<U,
T> CompletableFuture <U> handle
(CompletableFuture<T> src, BiFunction<? super T, Throwable, ? extends U> fn) void
updateExecutionId
(ExecutionId executionId) <T> CompletableFuture
<T> whenComplete
(CompletableFuture<T> src, BiConsumer<? super T, ? super Throwable> fn)
-
Constructor Details
-
EngineRunningState
public EngineRunningState() -
EngineRunningState
-
-
Method Details
-
handle
public <U,T> CompletableFuture<U> handle(CompletableFuture<T> src, BiFunction<? super T, Throwable, ? extends U> fn) -
whenComplete
public <T> CompletableFuture<T> whenComplete(CompletableFuture<T> src, BiConsumer<? super T, ? super Throwable> fn) -
compose
public <U,T> CompletableFuture<U> compose(CompletableFuture<T> src, Function<? super T, ? extends CompletionStage<U>> fn) -
updateExecutionId
-
engineRun
public CompletableFuture<ExecutionResult> engineRun(Supplier<CompletableFuture<ExecutionResult>> engineRun) Only used once outside of this class: when the execution starts
-