@Deprecated public class SingleSessionIoHandlerAdapter extends Object implements SingleSessionIoHandler
SingleSessionIoHandler
interface. The session to which the handler is assigned is accessible
through the getSession() method.| Constructor and Description |
|---|
SingleSessionIoHandlerAdapter(IoSession session)
Deprecated.
Creates a new instance that is assigned to the passed in session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(Throwable th)
Deprecated.
Invoked when any exception is thrown by user
IoHandler
implementation or by MINA. |
protected IoSession |
getSession()
Deprecated.
Retrieves the session to which this handler is assigned.
|
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.
|
public SingleSessionIoHandlerAdapter(IoSession session)
session - the session to which the handler is assignedprotected IoSession getSession()
public void exceptionCaught(Throwable th) throws Exception
SingleSessionIoHandlerIoHandler
implementation or by MINA. If cause is instanceof
IOException, MINA will close the connection automatically.exceptionCaught in interface SingleSessionIoHandlerth - the caught exceptionExceptionIoHandler.exceptionCaught(IoSession, Throwable)public void messageReceived(Object message) throws Exception
SingleSessionIoHandlermessageReceived in interface SingleSessionIoHandlermessage - the received messageExceptionIoHandler.messageReceived(IoSession, Object)public void messageSent(Object message) throws Exception
SingleSessionIoHandlerIoSession.write(Object) is sent out actually.messageSent in interface SingleSessionIoHandlermessage - the sent messageExceptionIoHandler.messageSent(IoSession, Object)public void sessionClosed()
throws Exception
SingleSessionIoHandlersessionClosed in interface SingleSessionIoHandlerExceptionIoHandler.sessionClosed(IoSession)public void sessionCreated()
throws Exception
SingleSessionIoHandlersessionCreated in interface SingleSessionIoHandlerExceptionIoHandler.sessionCreated(IoSession)public void sessionIdle(IdleStatus status) throws Exception
SingleSessionIoHandlerIdleStatus. This
method is not invoked if the transport type is UDP.sessionIdle in interface SingleSessionIoHandlerstatus - the type of idlenessExceptionIoHandler.sessionIdle(IoSession, IdleStatus)public void sessionOpened()
throws Exception
SingleSessionIoHandlersessionOpened in interface SingleSessionIoHandlerExceptionIoHandler.sessionOpened(IoSession)