Package | Description |
---|---|
org.asynchttpclient | |
org.asynchttpclient.handler | |
org.asynchttpclient.netty.request |
Modifier and Type | Class and Description |
---|---|
class |
AsyncCompletionHandler<T>
An
AsyncHandler augmented with an AsyncCompletionHandler.onCompleted(Response)
convenience method which gets called when the Response processing is
finished. |
class |
AsyncCompletionHandlerBase
Simple
AsyncHandler of type Response |
Modifier and Type | Class and Description |
---|---|
class |
TransferCompletionHandler
A
AsyncHandler that can be used to notify a set of TransferListener
AsyncHttpClient client = new AsyncHttpClient(); TransferCompletionHandler tl = new TransferCompletionHandler(); tl.addTransferListener(new TransferListener() { public void onRequestHeadersSent(HttpHeaders headers) { } public void onResponseHeadersReceived(HttpHeaders headers) { } public void onBytesReceived(ByteBuffer buffer) { } public void onBytesSent(long amount, long current, long total) { } public void onRequestResponseCompleted() { } public void onThrowable(Throwable t) { } }); Response response = httpClient.prepareGet("http://...").execute(tl).get(); |
Modifier and Type | Field and Description |
---|---|
protected ProgressAsyncHandler<?> |
WriteListener.progressAsyncHandler |
Copyright © 2018. All Rights Reserved.