public interface ConnectionProbe
Connection implementations.| Modifier and Type | Interface and Description |
|---|---|
static class |
ConnectionProbe.Adapter
ConnectionProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer. |
| Modifier and Type | Method and Description |
|---|---|
void |
onAcceptEvent(Connection serverConnection,
Connection clientConnection)
Method will be called, when server side connection gets accepted.
|
void |
onBindEvent(Connection connection)
Method will be called, when server side connection gets bound.
|
void |
onCloseEvent(Connection connection)
Method will be called, when
Connection gets closed. |
void |
onConnectEvent(Connection connection)
Method will be called, when client side connection gets connected (opened).
|
void |
onErrorEvent(Connection connection,
Throwable error)
Method will be called, when error occurs on the
Connection. |
void |
onIOEventDisableEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when
IOEvent for the specific
Connection gets disabled. |
void |
onIOEventEnableEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when
IOEvent for the specific
Connection gets enabled. |
void |
onIOEventReadyEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when
IOEvent for the specific
Connection gets ready. |
void |
onReadEvent(Connection connection,
Buffer data,
int size)
Method will be called, when the
Connection has read data. |
void |
onWriteEvent(Connection connection,
Buffer data,
long size)
Method will be called, when the
Connection has written data. |
void onBindEvent(Connection connection)
connection - Connection, the event belongs to.void onAcceptEvent(Connection serverConnection, Connection clientConnection)
serverConnection - server Connection, the event belongs to.clientConnection - new client Connection.void onConnectEvent(Connection connection)
connection - Connection, the event belongs to.void onReadEvent(Connection connection, Buffer data, int size)
Connection has read data.connection - Connection, the event belongs to.data - Buffer, where the data gets read.size - the data size.void onWriteEvent(Connection connection, Buffer data, long size)
Connection has written data.connection - Connection, the event belongs to.data - Buffer, where the data gets writen.size - the data size.void onErrorEvent(Connection connection, Throwable error)
Connection.connection - Connection, the event belongs to.error - errorvoid onCloseEvent(Connection connection)
Connection gets closed.connection - Connection, the event belongs to.void onIOEventReadyEvent(Connection connection, IOEvent ioEvent)
IOEvent for the specific
Connection gets ready.connection - Connection, the event belongs to.ioEvent - IOEvent.void onIOEventEnableEvent(Connection connection, IOEvent ioEvent)
IOEvent for the specific
Connection gets enabled.connection - Connection, the event belongs to.ioEvent - IOEvent.void onIOEventDisableEvent(Connection connection, IOEvent ioEvent)
IOEvent for the specific
Connection gets disabled.connection - Connection, the event belongs to.ioEvent - IOEvent.Copyright © 2016 Oracle Corporation. All Rights Reserved.