public abstract class TcpServerEventListener
extends io.reactivex.netty.channel.events.ConnectionEventListener
TcpServer| Constructor and Description |
|---|
TcpServerEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Event when any connection handling completes with an error.
|
void |
onConnectionHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when any connection handling starts.
|
void |
onConnectionHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event when any connection handling is successfully completed.
|
void |
onNewClientConnected()
Event whenever a new client connection is accepted.
|
onByteRead, onByteWritten, onCompleted, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onCustomEvent, onCustomEvent, onCustomEvent, onCustomEvent, onFlushComplete, onFlushStart, onWriteFailed, onWriteStart, onWriteSuccesspublic void onNewClientConnected()
public void onConnectionHandlingStart(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time between a client connection is accepted to when it is handled by the connection handler.timeUnit - Time unit for the duration.public void onConnectionHandlingSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Time taken for connection handling.timeUnit - Time unit for the duration.public void onConnectionHandlingFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Time taken for connection handling.timeUnit - Time unit for the duration.