java.lang.Object
org.glassfish.grizzly.ConnectionProbe.Adapter
- All Implemented Interfaces:
ConnectionProbe
- Enclosing interface:
- ConnectionProbe
ConnectionProbe
adapter that provides no-op implementations for all interface methods allowing easy extension
by the developer.- Since:
- 2.1.9
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.ConnectionProbe
ConnectionProbe.Adapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, whenConnection
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 theConnection
.void
onIOEventDisableEvent
(Connection connection, IOEvent ioEvent) Method will be called, whenIOEvent
for the specificConnection
gets disabled.void
onIOEventEnableEvent
(Connection connection, IOEvent ioEvent) Method will be called, whenIOEvent
for the specificConnection
gets enabled.void
onIOEventReadyEvent
(Connection connection, IOEvent ioEvent) Method will be called, whenIOEvent
for the specificConnection
gets ready.void
onReadEvent
(Connection connection, Buffer data, int size) Method will be called, when theConnection
has read data.void
onWriteEvent
(Connection connection, Buffer data, long size) Method will be called, when theConnection
has written data.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
onBindEvent
Method will be called, when server side connection gets bound.- Specified by:
onBindEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.
-
onAcceptEvent
Method will be called, when server side connection gets accepted.- Specified by:
onAcceptEvent
in interfaceConnectionProbe
- Parameters:
serverConnection
- serverConnection
, the event belongs to.clientConnection
- new clientConnection
.
-
onConnectEvent
Method will be called, when client side connection gets connected (opened).- Specified by:
onConnectEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.
-
onReadEvent
Method will be called, when theConnection
has read data.- Specified by:
onReadEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.data
-Buffer
, where the data gets read.size
- the data size.
-
onWriteEvent
Method will be called, when theConnection
has written data.- Specified by:
onWriteEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.data
-Buffer
, where the data gets writen.size
- the data size.
-
onErrorEvent
Method will be called, when error occurs on theConnection
.- Specified by:
onErrorEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.error
- error
-
onCloseEvent
Method will be called, whenConnection
gets closed.- Specified by:
onCloseEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.
-
onIOEventReadyEvent
Method will be called, whenIOEvent
for the specificConnection
gets ready.- Specified by:
onIOEventReadyEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.ioEvent
-IOEvent
.
-
onIOEventEnableEvent
Method will be called, whenIOEvent
for the specificConnection
gets enabled.- Specified by:
onIOEventEnableEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.ioEvent
-IOEvent
.
-
onIOEventDisableEvent
Method will be called, whenIOEvent
for the specificConnection
gets disabled.- Specified by:
onIOEventDisableEvent
in interfaceConnectionProbe
- Parameters:
connection
-Connection
, the event belongs to.ioEvent
-IOEvent
.
-