Interface DelayedResponse<T>

All Known Implementing Classes:
AsyncResponse, DeferredResponse, PendingResponse, StreamingResponse, SuspendedResponse

public interface DelayedResponse<T>
  • Method Details

    • isDone

      boolean isDone()
    • blockingGet

      T blockingGet()
    • result

      default Object result()
    • join

      static <R> R join(CompletableFuture<R> future)
      Blocks on future and, on failure, rethrows the original cause instead of the CompletionException that CompletableFuture.join() wraps it in, so an asynchronous agent failure surfaces the same exception type as the synchronous path (an AgentInvocationException) instead of leaking the CompletableFuture plumbing. A checked-exception cause cannot be rethrown from here and is left wrapped.