public abstract class HttpClientEventsListener
extends io.reactivex.netty.protocol.tcp.client.events.TcpClientEventListener
HttpClient| Constructor and Description |
|---|
HttpClientEventsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onRequestProcessingComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when the entire request processing (request header write to response failed/complete) is completed.
|
void |
onRequestSubmitted()
Event when a new request is submitted for the client.
|
void |
onRequestWriteComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when a request write is completed.
|
void |
onRequestWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Event when a request write failed.
|
void |
onRequestWriteStart()
Event when the write of request started.
|
void |
onResponseContentReceived()
Event whenever an HTTP response content is received (an HTTP response can have multiple content chunks, in which
case this event will be fired as many times for the same response).
|
void |
onResponseFailed(java.lang.Throwable throwable)
Event when the response failed (either it did not arrive or not arrived completely)
|
void |
onResponseHeadersReceived(int responseCode,
long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when the response headers are received.
|
void |
onResponseReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when the response receive is completed.
|
onConnectFailed, onConnectStart, onConnectSuccess, onPoolAcquireFailed, onPoolAcquireStart, onPoolAcquireSuccess, onPooledConnectionEviction, onPooledConnectionReuse, onPoolReleaseFailed, onPoolReleaseStart, onPoolReleaseSuccessonByteRead, onByteWritten, onCompleted, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onCustomEvent, onCustomEvent, onCustomEvent, onCustomEvent, onFlushComplete, onFlushStart, onWriteFailed, onWriteStart, onWriteSuccesspublic void onRequestSubmitted()
public void onRequestWriteStart()
public void onRequestWriteComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time taken from the start of write to completion.timeUnit - Time unit for the duration.public void onRequestWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Time taken from the start of write to failure.timeUnit - Time unit for the duration.throwable - Error that caused the failure.public void onResponseHeadersReceived(int responseCode,
long duration,
java.util.concurrent.TimeUnit timeUnit)
responseCode - The HTTP response code.duration - The time between the request write completion and response header recieve.timeUnit - Timeunit for the duration.public void onResponseContentReceived()
public void onResponseReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time taken between receiving the response headers and completion of response.timeUnit - Time unit for the duration.public void onResponseFailed(java.lang.Throwable throwable)
throwable - Error that caused the failure.public void onRequestProcessingComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time taken from start of write of request to response receive completion.timeUnit - Time unit for the duration.