public class WebSocketClientMetricEventsListener extends ClientMetricEventsListener<ClientMetricsEvent<?>>
MetricEventsListener for receiving WebSocketClientMetricsEvent. 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 |
|---|
WebSocketClientMetricEventsListener() |
| 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 |
onHandshakeFailure(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onHandshakeStart() |
protected void |
onHandshakeSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onWebSocketReads() |
protected void |
onWebSocketWrites() |
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 onHandshakeStart()
protected void onHandshakeSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
protected void onHandshakeFailure(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
protected void onWebSocketWrites()
protected void onWebSocketReads()