public final class RemoteFlow extends Object implements Flow, Serializable, FlowFutureSource
This
Flow.FlowState| Modifier and Type | Method and Description |
|---|---|
Flow |
addTerminationHook(Flows.SerConsumer<Flow.FlowState> hook) |
FlowFuture<Void> |
allOf(FlowFuture<?>... flowFutures) |
FlowFuture<Object> |
anyOf(FlowFuture<?>... flowFutures) |
<T> FlowFuture<T> |
completedValue(T value) |
<T> FlowFuture<T> |
createFlowFuture() |
<V> FlowFuture<V> |
createFlowFuture(CompletionId completionId) |
FlowFuture<Void> |
delay(long i,
TimeUnit tu) |
<T> FlowFuture<T> |
failedFuture(Throwable ex) |
FlowId |
getFlowId() |
FlowFuture<HttpResponse> |
invokeFunction(String functionId,
HttpMethod method,
Headers headers,
byte[] data) |
<U> FlowFuture<HttpResponse> |
invokeFunction(String functionId,
HttpMethod method,
Headers headers,
U input) |
<T extends Serializable,U> |
invokeFunction(String functionId,
HttpMethod method,
Headers headers,
U input,
Class<T> responseType) |
<T> FlowFuture<T> |
supply(Flows.SerCallable<T> c) |
FlowFuture<Void> |
supply(Flows.SerRunnable runnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokeFunction, invokeFunction, invokeFunction, invokeFunctionpublic <V> FlowFuture<V> createFlowFuture(CompletionId completionId)
createFlowFuture in interface FlowFutureSourcepublic FlowId getFlowId()
public FlowFuture<HttpResponse> invokeFunction(String functionId, HttpMethod method, Headers headers, byte[] data)
invokeFunction in interface Flowpublic <T extends Serializable,U> FlowFuture<T> invokeFunction(String functionId, HttpMethod method, Headers headers, U input, Class<T> responseType)
invokeFunction in interface Flowpublic <U> FlowFuture<HttpResponse> invokeFunction(String functionId, HttpMethod method, Headers headers, U input)
invokeFunction in interface Flowpublic <T> FlowFuture<T> supply(Flows.SerCallable<T> c)
public FlowFuture<Void> supply(Flows.SerRunnable runnable)
public FlowFuture<Void> delay(long i, TimeUnit tu)
public <T> FlowFuture<T> completedValue(T value)
completedValue in interface Flowpublic <T> FlowFuture<T> failedFuture(Throwable ex)
failedFuture in interface Flowpublic <T> FlowFuture<T> createFlowFuture()
createFlowFuture in interface Flowpublic FlowFuture<Void> allOf(FlowFuture<?>... flowFutures)
public FlowFuture<Object> anyOf(FlowFuture<?>... flowFutures)
public Flow addTerminationHook(Flows.SerConsumer<Flow.FlowState> hook)
addTerminationHook in interface FlowCopyright © 2021. All rights reserved.