public class EWMABasedP2CStrategy.HttpClientListenerImpl extends HttpClientEventsListener
| Constructor and Description |
|---|
HttpClientListenerImpl() |
| Modifier and Type | Method and Description |
|---|---|
double |
getWeight() |
void |
onConnectFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
void |
onRequestWriteComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when a request write is completed.
|
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.
|
onRequestProcessingComplete, onRequestSubmitted, onRequestWriteFailed, onRequestWriteStart, onResponseContentReceived, onResponseFailedonConnectStart, onConnectSuccess, onPoolAcquireFailed, onPoolAcquireStart, onPoolAcquireSuccess, onPooledConnectionEviction, onPooledConnectionReuse, onPoolReleaseFailed, onPoolReleaseStart, onPoolReleaseSuccessonByteRead, onByteWritten, onCompleted, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onCustomEvent, onCustomEvent, onCustomEvent, onCustomEvent, onFlushComplete, onFlushStart, onWriteFailed, onWriteStart, onWriteSuccesspublic double getWeight()
public void onRequestWriteComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
HttpClientEventsListeneronRequestWriteComplete in class HttpClientEventsListenerduration - Time taken from the start of write to completion.timeUnit - Time unit for the duration.public void onResponseReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
HttpClientEventsListeneronResponseReceiveComplete in class HttpClientEventsListenerduration - Time taken between receiving the response headers and completion of response.timeUnit - Time unit for the duration.public void onResponseHeadersReceived(int responseCode,
long duration,
java.util.concurrent.TimeUnit timeUnit)
HttpClientEventsListeneronResponseHeadersReceived in class HttpClientEventsListenerresponseCode - The HTTP response code.duration - The time between the request write completion and response header recieve.timeUnit - Timeunit for the duration.public void onConnectFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
onConnectFailed in class io.reactivex.netty.client.events.ClientEventListener