Uses of Class
com.mastfrog.netty.http.client.ResponseFuture
-
Uses of ResponseFuture in com.mastfrog.netty.http.client
Methods in com.mastfrog.netty.http.client that return ResponseFutureModifier and TypeMethodDescriptionResponseFuture.await()Wait for the channel to be closed.Wait for a timeout for the request to be complleted.HttpRequestBuilder.execute()Launch the requestHttpRequestBuilder.execute(ResponseHandler<?> response) Launch the request<T> ResponseFutureAdd a listener for a particular type of event<T> ResponseFutureResponseFuture.onAnyEvent(Receiver<State<?>> r) Add a listener which is notified of all state changes (there are many!).Send some objects through the channel once a given state is reached (if the state already has been, they will be sent immediately if the channel is not closed).ResponseFuture.throwIfError()If an error was encountered, throw itMethods in com.mastfrog.netty.http.client with parameters of type ResponseFuture