@Deprecated public interface SingleSessionIoHandler
IoSession parameter for simplicity.
A SingleSessionIoHandler is similar to an IoHandler with
the notable difference that a SingleSessionIoHandler is used only
by one session at a time. Thus, there is no IoSession parameter in
the methods of this interface.
Because events are passed to the session in order, it is possible to store conversational state as instance variables in this object.
WARNING: This class is badly named as the actualIoHandler implementor
is in fact the SingleSessionIoHandlerDelegate.| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(Throwable cause)
Deprecated.
Invoked when any exception is thrown by user
IoHandler
implementation or by MINA. |
void |
messageReceived(Object message)
Deprecated.
Invoked when protocol message is received.
|
void |
messageSent(Object message)
Deprecated.
Invoked when protocol message that user requested by
IoSession.write(Object) is sent out actually. |
void |
sessionClosed()
Deprecated.
Invoked when the connection is closed.
|
void |
sessionCreated()
Deprecated.
Invoked when the session is created.
|
void |
sessionIdle(IdleStatus status)
Deprecated.
Invoked when the connection is idle.
|
void |
sessionOpened()
Deprecated.
Invoked when the connection is opened.
|
void sessionCreated()
throws Exception
ExceptionIoHandler.sessionCreated(IoSession)void sessionOpened()
throws Exception
ExceptionIoHandler.sessionOpened(IoSession)void sessionClosed()
throws Exception
ExceptionIoHandler.sessionClosed(IoSession)void sessionIdle(IdleStatus status) throws Exception
IdleStatus. This
method is not invoked if the transport type is UDP.status - the type of idlenessExceptionIoHandler.sessionIdle(IoSession, IdleStatus)void exceptionCaught(Throwable cause) throws Exception
IoHandler
implementation or by MINA. If cause is instanceof
IOException, MINA will close the connection automatically.cause - the caught exceptionExceptionIoHandler.exceptionCaught(IoSession, Throwable)void messageReceived(Object message) throws Exception
message - the received messageExceptionIoHandler.messageReceived(IoSession, Object)void messageSent(Object message) throws Exception
IoSession.write(Object) is sent out actually.message - the sent messageExceptionIoHandler.messageSent(IoSession, Object)