public abstract class HttpClientMetricEventsListener extends ClientMetricEventsListener<ClientMetricsEvent<?>>
MetricEventsListener for receiving HttpClientMetricsEvent. This
implementation receives the events and provides convenience methods representing those events with clear arguments
that are expected with that event type.NO_DURATION, NO_ERROR, NO_TIME_UNIT, NO_VALUE| Constructor and Description |
|---|
HttpClientMetricEventsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(ClientMetricsEvent<?> event,
long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable,
java.lang.Object value)
Event callback for any
MetricsEvent. |
protected void |
onRequestContentSourceError(java.lang.Throwable throwable) |
protected void |
onRequestContentWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onRequestContentWriteStart() |
protected void |
onRequestContentWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onRequestHeadersWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onRequestHeadersWriteStart() |
protected void |
onRequestHeadersWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onRequestProcessingComplete(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onRequestSubmitted() |
protected void |
onRequestWriteComplete(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onRequestWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onResponseContentReceived(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onResponseFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onResponseHeadersReceived(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onResponseReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit) |
onByteRead, onCompleted, onConnectFailed, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onConnectStart, onConnectSuccess, onFlushFailed, onFlushStart, onFlushSuccess, onPoolAcquireFailed, onPoolAcquireStart, onPoolAcquireSuccess, onPooledConnectionEviction, onPooledConnectionReuse, onPoolReleaseFailed, onPoolReleaseStart, onPoolReleaseSuccess, onSubscribe, onWriteFailed, onWriteStart, onWriteSuccesspublic void onEvent(ClientMetricsEvent<?> event, long duration, java.util.concurrent.TimeUnit timeUnit, java.lang.Throwable throwable, java.lang.Object value)
MetricEventsListenerMetricsEvent. The parameters passed are all the contextual information possible for
any event. There presence or absence will depend on the type of event.onEvent in interface MetricEventsListener<ClientMetricsEvent<?>>onEvent in class ClientMetricEventsListener<ClientMetricsEvent<?>>event - Event for which this callback has been invoked. This will never be nullduration - If the passed event is MetricsEvent.isTimed() then the actual duration, else
MetricEventsListener.NO_DURATIONtimeUnit - The time unit for the duration, if exists, else MetricEventsListener.NO_TIME_UNITthrowable - If the passed event is MetricsEvent.isError() then the cause of the error, else
MetricEventsListener.NO_ERRORvalue - If the passed event requires custom object to be passed, then that object, else MetricEventsListener.NO_VALUEprotected void onRequestContentSourceError(java.lang.Throwable throwable)
protected void onRequestWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onResponseFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onResponseReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onResponseContentReceived(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onResponseHeadersReceived(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onRequestWriteComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onRequestContentWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onRequestContentWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onRequestContentWriteStart()
protected void onRequestHeadersWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onRequestHeadersWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onRequestHeadersWriteStart()
protected void onRequestSubmitted()
protected void onRequestProcessingComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)