Package org.glassfish.grizzly
Class ConnectionProbe.Adapter
- java.lang.Object
-
- org.glassfish.grizzly.ConnectionProbe.Adapter
-
- All Implemented Interfaces:
ConnectionProbe
- Enclosing interface:
- ConnectionProbe
public static class ConnectionProbe.Adapter extends Object implements ConnectionProbe
ConnectionProbeadapter 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
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete 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
public void onBindEvent(Connection connection)
Method will be called, when server side connection gets bound.- Specified by:
onBindEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.
-
onAcceptEvent
public void onAcceptEvent(Connection serverConnection, Connection clientConnection)
Method will be called, when server side connection gets accepted.- Specified by:
onAcceptEventin interfaceConnectionProbe- Parameters:
serverConnection- serverConnection, the event belongs to.clientConnection- new clientConnection.
-
onConnectEvent
public void onConnectEvent(Connection connection)
Method will be called, when client side connection gets connected (opened).- Specified by:
onConnectEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.
-
onReadEvent
public void onReadEvent(Connection connection, Buffer data, int size)
Method will be called, when theConnectionhas read data.- Specified by:
onReadEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.data-Buffer, where the data gets read.size- the data size.
-
onWriteEvent
public void onWriteEvent(Connection connection, Buffer data, long size)
Method will be called, when theConnectionhas written data.- Specified by:
onWriteEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.data-Buffer, where the data gets writen.size- the data size.
-
onErrorEvent
public void onErrorEvent(Connection connection, Throwable error)
Method will be called, when error occurs on theConnection.- Specified by:
onErrorEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.error- error
-
onCloseEvent
public void onCloseEvent(Connection connection)
Method will be called, whenConnectiongets closed.- Specified by:
onCloseEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.
-
onIOEventReadyEvent
public void onIOEventReadyEvent(Connection connection, IOEvent ioEvent)
Method will be called, whenIOEventfor the specificConnectiongets ready.- Specified by:
onIOEventReadyEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.ioEvent-IOEvent.
-
onIOEventEnableEvent
public void onIOEventEnableEvent(Connection connection, IOEvent ioEvent)
Method will be called, whenIOEventfor the specificConnectiongets enabled.- Specified by:
onIOEventEnableEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.ioEvent-IOEvent.
-
onIOEventDisableEvent
public void onIOEventDisableEvent(Connection connection, IOEvent ioEvent)
Method will be called, whenIOEventfor the specificConnectiongets disabled.- Specified by:
onIOEventDisableEventin interfaceConnectionProbe- Parameters:
connection-Connection, the event belongs to.ioEvent-IOEvent.
-
-