Package io.airlift.jaxrs
Class AsyncResponseHandler
- java.lang.Object
-
- io.airlift.jaxrs.AsyncResponseHandler
-
public class AsyncResponseHandler extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AsyncResponseHandlerbindAsyncResponse(javax.ws.rs.container.AsyncResponse asyncResponse, com.google.common.util.concurrent.ListenableFuture<?> futureResponse, Executor httpResponseExecutor)AsyncResponseHandlerwithTimeout(io.airlift.units.Duration timeout)AsyncResponseHandlerwithTimeout(io.airlift.units.Duration timeout, Supplier<javax.ws.rs.core.Response> timeoutResponse)AsyncResponseHandlerwithTimeout(io.airlift.units.Duration timeout, javax.ws.rs.core.Response timeoutResponse)
-
-
-
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)
-
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)
-
-