public static class ConnectionProbe.Adapter extends Object implements ConnectionProbe
ConnectionProbe
adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer.ConnectionProbe.Adapter
Constructor and Description |
---|
Adapter() |
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. |
public void onBindEvent(Connection connection)
onBindEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.public void onAcceptEvent(Connection serverConnection, Connection clientConnection)
onAcceptEvent
in interface ConnectionProbe
serverConnection
- server Connection
, the event belongs to.clientConnection
- new client Connection
.public void onConnectEvent(Connection connection)
onConnectEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.public void onReadEvent(Connection connection, Buffer data, int size)
Connection
has read data.onReadEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.data
- Buffer
, where the data gets read.size
- the data size.public void onWriteEvent(Connection connection, Buffer data, long size)
Connection
has written data.onWriteEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.data
- Buffer
, where the data gets writen.size
- the data size.public void onErrorEvent(Connection connection, Throwable error)
Connection
.onErrorEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.error
- errorpublic void onCloseEvent(Connection connection)
Connection
gets closed.onCloseEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.public void onIOEventReadyEvent(Connection connection, IOEvent ioEvent)
IOEvent
for the specific
Connection
gets ready.onIOEventReadyEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.ioEvent
- IOEvent
.public void onIOEventEnableEvent(Connection connection, IOEvent ioEvent)
IOEvent
for the specific
Connection
gets enabled.onIOEventEnableEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.ioEvent
- IOEvent
.public void onIOEventDisableEvent(Connection connection, IOEvent ioEvent)
IOEvent
for the specific
Connection
gets disabled.onIOEventDisableEvent
in interface ConnectionProbe
connection
- Connection
, the event belongs to.ioEvent
- IOEvent
.Copyright © 2015 Oracle Corporation. All rights reserved.