public class TcpServerListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>
extends io.reactivex.netty.metrics.ServerMetricEventsListener<T>
| Modifier | Constructor and Description |
|---|---|
protected |
TcpServerListener(java.lang.String monitorId) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesRead() |
long |
getBytesWritten() |
com.netflix.servo.monitor.Timer |
getConnectionProcessingTimes() |
long |
getFailedConnections() |
long |
getFailedFlushes() |
long |
getFailedWrites() |
com.netflix.servo.monitor.Timer |
getFlushTimes() |
long |
getInflightConnections() |
long |
getLiveConnections() |
long |
getPendingFlushes() |
long |
getPendingWrites() |
com.netflix.servo.monitor.Timer |
getWriteTimes() |
static TcpServerListener<io.reactivex.netty.server.ServerMetricsEvent<io.reactivex.netty.server.ServerMetricsEvent.EventType>> |
newListener(java.lang.String monitorId) |
protected void |
onByteRead(long bytesRead) |
void |
onCompleted() |
protected void |
onConnectionCloseFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onConnectionCloseStart() |
protected void |
onConnectionCloseSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onConnectionHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onConnectionHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onConnectionHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onFlushFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onFlushStart() |
protected void |
onFlushSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit) |
protected void |
onNewClientConnected() |
void |
onSubscribe() |
protected void |
onWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable) |
protected void |
onWriteStart() |
protected void |
onWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit,
long bytesWritten) |
protected void onConnectionHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
onConnectionHandlingFailed in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onConnectionHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
onConnectionHandlingSuccess in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onConnectionHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit)
onConnectionHandlingStart in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onConnectionCloseStart()
onConnectionCloseStart in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onConnectionCloseSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
onConnectionCloseSuccess in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onConnectionCloseFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
onConnectionCloseFailed in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onNewClientConnected()
onNewClientConnected in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onByteRead(long bytesRead)
onByteRead in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onFlushFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
onFlushFailed in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onFlushSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
onFlushSuccess in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onFlushStart()
onFlushStart in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onWriteFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
onWriteFailed in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onWriteSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit,
long bytesWritten)
onWriteSuccess in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>protected void onWriteStart()
onWriteStart in class io.reactivex.netty.metrics.ServerMetricEventsListener<T extends io.reactivex.netty.server.ServerMetricsEvent<?>>public void onCompleted()
public void onSubscribe()
public static TcpServerListener<io.reactivex.netty.server.ServerMetricsEvent<io.reactivex.netty.server.ServerMetricsEvent.EventType>> newListener(java.lang.String monitorId)
public long getLiveConnections()
public long getInflightConnections()
public long getFailedConnections()
public com.netflix.servo.monitor.Timer getConnectionProcessingTimes()
public long getPendingWrites()
public long getPendingFlushes()
public long getBytesWritten()
public com.netflix.servo.monitor.Timer getWriteTimes()
public long getBytesRead()
public long getFailedWrites()
public long getFailedFlushes()
public com.netflix.servo.monitor.Timer getFlushTimes()