Class AsyncResponseHandler


  • public class AsyncResponseHandler
    extends Object
    • Method Detail

      • bindAsyncResponse

        public static AsyncResponseHandler bindAsyncResponse​(javax.ws.rs.container.AsyncResponse asyncResponse,
                                                             com.google.common.util.concurrent.ListenableFuture<?> futureResponse,
                                                             Executor httpResponseExecutor)
      • withTimeout

        public AsyncResponseHandler withTimeout​(io.airlift.units.Duration timeout,
                                                javax.ws.rs.core.Response timeoutResponse)
      • withTimeout

        public AsyncResponseHandler withTimeout​(io.airlift.units.Duration timeout,
                                                Supplier<javax.ws.rs.core.Response> timeoutResponse)