Package org.glassfish.grizzly
Interface ConnectionProbe
-
- All Known Implementing Classes:
ConnectionProbe.Adapter
public interface ConnectionProbeMonitoring probe providing callbacks that may be invoked by GrizzlyConnectionimplementations.- Since:
- 2.0
- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConnectionProbe.AdapterConnectionProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAcceptEvent(Connection serverConnection, Connection clientConnection)Method will be called, when server side connection gets accepted.voidonBindEvent(Connection connection)Method will be called, when server side connection gets bound.voidonCloseEvent(Connection connection)Method will be called, whenConnectiongets closed.voidonConnectEvent(Connection connection)Method will be called, when client side connection gets connected (opened).voidonErrorEvent(Connection connection, Throwable error)Method will be called, when error occurs on theConnection.voidonIOEventDisableEvent(Connection connection, IOEvent ioEvent)Method will be called, whenIOEventfor the specificConnectiongets disabled.voidonIOEventEnableEvent(Connection connection, IOEvent ioEvent)Method will be called, whenIOEventfor the specificConnectiongets enabled.voidonIOEventReadyEvent(Connection connection, IOEvent ioEvent)Method will be called, whenIOEventfor the specificConnectiongets ready.voidonReadEvent(Connection connection, Buffer data, int size)Method will be called, when theConnectionhas read data.voidonWriteEvent(Connection connection, Buffer data, long size)Method will be called, when theConnectionhas written data.
-
-
-
Method Detail
-
onBindEvent
void onBindEvent(Connection connection)
Method will be called, when server side connection gets bound.- Parameters:
connection-Connection, the event belongs to.
-
onAcceptEvent
void onAcceptEvent(Connection serverConnection, Connection clientConnection)
Method will be called, when server side connection gets accepted.- Parameters:
serverConnection- serverConnection, the event belongs to.clientConnection- new clientConnection.
-
onConnectEvent
void onConnectEvent(Connection connection)
Method will be called, when client side connection gets connected (opened).- Parameters:
connection-Connection, the event belongs to.
-
onReadEvent
void onReadEvent(Connection connection, Buffer data, int size)
Method will be called, when theConnectionhas read data.- Parameters:
connection-Connection, the event belongs to.data-Buffer, where the data gets read.size- the data size.
-
onWriteEvent
void onWriteEvent(Connection connection, Buffer data, long size)
Method will be called, when theConnectionhas written data.- Parameters:
connection-Connection, the event belongs to.data-Buffer, where the data gets writen.size- the data size.
-
onErrorEvent
void onErrorEvent(Connection connection, Throwable error)
Method will be called, when error occurs on theConnection.- Parameters:
connection-Connection, the event belongs to.error- error
-
onCloseEvent
void onCloseEvent(Connection connection)
Method will be called, whenConnectiongets closed.- Parameters:
connection-Connection, the event belongs to.
-
onIOEventReadyEvent
void onIOEventReadyEvent(Connection connection, IOEvent ioEvent)
Method will be called, whenIOEventfor the specificConnectiongets ready.- Parameters:
connection-Connection, the event belongs to.ioEvent-IOEvent.
-
onIOEventEnableEvent
void onIOEventEnableEvent(Connection connection, IOEvent ioEvent)
Method will be called, whenIOEventfor the specificConnectiongets enabled.- Parameters:
connection-Connection, the event belongs to.ioEvent-IOEvent.
-
onIOEventDisableEvent
void onIOEventDisableEvent(Connection connection, IOEvent ioEvent)
Method will be called, whenIOEventfor the specificConnectiongets disabled.- Parameters:
connection-Connection, the event belongs to.ioEvent-IOEvent.
-
-