public abstract class HttpServerMetricEventsListener extends ServerMetricEventsListener<ServerMetricsEvent<?>>
MetricEventsListener for receiving HttpServerMetricsEvent. 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 |
|---|
HttpServerMetricEventsListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(ServerMetricsEvent<?> event,
long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable,
java.lang.Object value)
Event callback for any
MetricsEvent. |
protected void |
onNewRequestReceived() |
protected void |
onRequestContentReceived() |
protected void |
onRequestHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onRequestHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onRequestHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onRequestHeadersReceived() |
protected void |
onRequestReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onResponseContentWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onResponseContentWriteStart() |
protected void |
onResponseContentWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onResponseHeadersWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onResponseHeadersWriteStart() |
protected void |
onResponseHeadersWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
onByteRead, onCompleted, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onConnectionHandlingFailed, onConnectionHandlingStart, onConnectionHandlingSuccess, onFlushFailed, onFlushStart, onFlushSuccess, onNewClientConnected, onSubscribe, onWriteFailed, onWriteStart, onWriteSuccesspublic void onEvent(ServerMetricsEvent<?> 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<ServerMetricsEvent<?>>onEvent in class ServerMetricEventsListener<ServerMetricsEvent<?>>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 onRequestHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onRequestHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onResponseContentWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onResponseContentWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onResponseContentWriteStart()
protected void onResponseHeadersWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onResponseHeadersWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onResponseHeadersWriteStart()
protected void onRequestReceiveComplete(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onRequestContentReceived()
protected void onRequestHeadersReceived()
protected void onRequestHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onNewRequestReceived()