|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionProbe
Monitoring probe providing callbacks that may be invoked by Grizzly
Connection implementations.
| Method Summary | |
|---|---|
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,
java.lang.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,
int size)
Method will be called, when the Connection has written data. |
| Method Detail |
|---|
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,
int 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,
java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||