|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.ConnectionProbe.Adapter
public static class ConnectionProbe.Adapter
ConnectionProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.grizzly.ConnectionProbe |
|---|
ConnectionProbe.Adapter |
| Constructor Summary | |
|---|---|
ConnectionProbe.Adapter()
|
|
| 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,
long size)
Method will be called, when the Connection has written data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionProbe.Adapter()
| Method Detail |
|---|
public void onBindEvent(Connection connection)
onBindEvent in interface ConnectionProbeconnection - Connection, the event belongs to.
public void onAcceptEvent(Connection serverConnection,
Connection clientConnection)
onAcceptEvent in interface ConnectionProbeserverConnection - server Connection, the event belongs to.clientConnection - new client Connection.public void onConnectEvent(Connection connection)
onConnectEvent in interface ConnectionProbeconnection - Connection, the event belongs to.
public void onReadEvent(Connection connection,
Buffer data,
int size)
Connection has read data.
onReadEvent in interface ConnectionProbeconnection - 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 ConnectionProbeconnection - Connection, the event belongs to.data - Buffer, where the data gets writen.size - the data size.
public void onErrorEvent(Connection connection,
java.lang.Throwable error)
Connection.
onErrorEvent in interface ConnectionProbeconnection - Connection, the event belongs to.error - errorpublic void onCloseEvent(Connection connection)
Connection gets closed.
onCloseEvent in interface ConnectionProbeconnection - Connection, the event belongs to.
public void onIOEventReadyEvent(Connection connection,
IOEvent ioEvent)
IOEvent for the specific
Connection gets ready.
onIOEventReadyEvent in interface ConnectionProbeconnection - Connection, the event belongs to.ioEvent - IOEvent.
public void onIOEventEnableEvent(Connection connection,
IOEvent ioEvent)
IOEvent for the specific
Connection gets enabled.
onIOEventEnableEvent in interface ConnectionProbeconnection - Connection, the event belongs to.ioEvent - IOEvent.
public void onIOEventDisableEvent(Connection connection,
IOEvent ioEvent)
IOEvent for the specific
Connection gets disabled.
onIOEventDisableEvent in interface ConnectionProbeconnection - Connection, the event belongs to.ioEvent - IOEvent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||