Interface DelayedResponse<T>
- All Known Implementing Classes:
AsyncResponse, DeferredResponse, PendingResponse, StreamingResponse, SuspendedResponse
public interface DelayedResponse<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisDone()static <R> Rjoin(CompletableFuture<R> future) Blocks onfutureand, on failure, rethrows the original cause instead of theCompletionExceptionthatCompletableFuture.join()wraps it in, so an asynchronous agent failure surfaces the same exception type as the synchronous path (anAgentInvocationException) instead of leaking theCompletableFutureplumbing.default Objectresult()
-
Method Details
-
isDone
boolean isDone() -
blockingGet
T blockingGet() -
result
-
join
Blocks onfutureand, on failure, rethrows the original cause instead of theCompletionExceptionthatCompletableFuture.join()wraps it in, so an asynchronous agent failure surfaces the same exception type as the synchronous path (anAgentInvocationException) instead of leaking theCompletableFutureplumbing. A checked-exception cause cannot be rethrown from here and is left wrapped.
-