public final class RecursionSafeAsyncCaller extends Object implements AsyncCaller
| Constructor and Description |
|---|
RecursionSafeAsyncCaller(ExecutorService executorService,
AsyncCaller caller) |
RecursionSafeAsyncCaller(ExecutorService executorService,
AsyncCaller caller,
long maxRecursionDepth) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(FutureCancelled cancelled) |
<T> void |
cancel(FutureDone<T> handle) |
<T,R> void |
cancel(StreamCollector<T,R> collector) |
void |
execute(Runnable runnable) |
<T> void |
fail(FutureDone<T> handle,
Throwable error) |
void |
fail(FutureFailed failed,
Throwable cause) |
<T,R> void |
fail(StreamCollector<T,R> collector,
Throwable error) |
void |
finish(FutureFinished finishable) |
boolean |
isThreaded() |
<T> void |
referenceLeaked(T reference,
StackTraceElement[] stack) |
<T> void |
resolve(FutureDone<T> handle,
T result) |
<T> void |
resolve(FutureResolved<T> resolved,
T value) |
<T,R> void |
resolve(StreamCollector<T,R> collector,
T result) |
public RecursionSafeAsyncCaller(ExecutorService executorService, AsyncCaller caller, long maxRecursionDepth)
public RecursionSafeAsyncCaller(ExecutorService executorService, AsyncCaller caller)
public <T> void resolve(FutureDone<T> handle, T result)
resolve in interface AsyncCallerpublic <T> void fail(FutureDone<T> handle, Throwable error)
fail in interface AsyncCallerpublic <T> void cancel(FutureDone<T> handle)
cancel in interface AsyncCallerpublic void cancel(FutureCancelled cancelled)
cancel in interface AsyncCallerpublic void finish(FutureFinished finishable)
finish in interface AsyncCallerpublic <T> void resolve(FutureResolved<T> resolved, T value)
resolve in interface AsyncCallerpublic <T,R> void resolve(StreamCollector<T,R> collector, T result)
resolve in interface AsyncCallerpublic <T,R> void fail(StreamCollector<T,R> collector, Throwable error)
fail in interface AsyncCallerpublic <T,R> void cancel(StreamCollector<T,R> collector)
cancel in interface AsyncCallerpublic void fail(FutureFailed failed, Throwable cause)
fail in interface AsyncCallerpublic <T> void referenceLeaked(T reference,
StackTraceElement[] stack)
referenceLeaked in interface AsyncCallerpublic void execute(Runnable runnable)
execute in interface AsyncCallerpublic boolean isThreaded()
isThreaded in interface AsyncCallerCopyright © 2017. All rights reserved.