public abstract class AbstractIoHandler extends Object implements IoHandler
| Constructor and Description |
|---|
AbstractIoHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(IoSession session,
Exception cause)
Invoked when any runtime exception is thrown during session processing (filters, unexpected error, etc..).
|
void |
messageReceived(IoSession session,
Object message)
Invoked when a message is received.
|
void |
messageSent(IoSession session,
Object message)
Invoked when a high level message was written to the low level O/S buffer.
|
void |
serviceActivated(IoService service)
Invoked when a new service is activated by an
IoService. |
void |
serviceInactivated(IoService service)
Invoked when a service is inactivated by an
IoService. |
void |
sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
public void sessionOpened(IoSession session)
sessionOpened in interface IoHandlersession - IoSession associated with the invocationpublic void sessionClosed(IoSession session)
sessionClosed in interface IoHandlersession - IoSession associated with the invocationpublic void sessionIdle(IoSession session, IdleStatus status)
IdleStatus when a connection becomes idle.sessionIdle in interface IoHandlersession - IoSession associated with the invocationpublic void messageReceived(IoSession session, Object message)
messageReceived in interface IoHandlersession - IoSession associated with the invocationmessage - the incoming message to processpublic void messageSent(IoSession session, Object message)
messageSent in interface IoHandlersession - IoSession associated with the invocationmessage - the incoming message to processpublic void serviceActivated(IoService service)
IoService.serviceActivated in interface IoHandlerservice - the IoServicepublic void serviceInactivated(IoService service)
IoService.serviceInactivated in interface IoHandlerservice - the IoServicepublic void exceptionCaught(IoSession session, Exception cause)
exceptionCaught in interface IoHandlersession - the session related to the exceptioncause - the caught exceptionCopyright © 2009–2013 Apache MINA Project. All rights reserved.