public interface TransferListener
Modifier and Type | Method and Description |
---|---|
void |
onBytesReceived(ByteBuffer buffer)
Invoked every time response's chunk are received.
|
void |
onBytesSent(ByteBuffer buffer)
Invoked every time request's chunk are sent.
|
void |
onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
Invoked when the request bytes are starting to get send.
|
void |
onRequestResponseCompleted()
Invoked when the response bytes are been fully received.
|
void |
onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
Invoked when the response bytes are starting to get received.
|
void |
onThrowable(Throwable t)
Invoked when there is an unexpected issue.
|
void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
void onBytesReceived(ByteBuffer buffer) throws IOException
buffer
- a ByteBuffer
IOException
void onBytesSent(ByteBuffer buffer)
buffer
- a ByteBuffer
void onRequestResponseCompleted()
Copyright © 2015. All Rights Reserved.