@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 |
inputClosed(IoSession session)
Deprecated.
|
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
Exception
IoHandler.sessionCreated(IoSession)
void sessionOpened() throws Exception
Exception
IoHandler.sessionOpened(IoSession)
void sessionClosed() throws Exception
Exception
IoHandler.sessionClosed(IoSession)
void sessionIdle(IdleStatus status) throws Exception
IdleStatus
. This
method is not invoked if the transport type is UDP.status
- the type of idlenessException
IoHandler.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 exceptionException
IoHandler.exceptionCaught(IoSession, Throwable)
void inputClosed(IoSession session)
void messageReceived(Object message) throws Exception
message
- the received messageException
IoHandler.messageReceived(IoSession, Object)
void messageSent(Object message) throws Exception
IoSession.write(Object)
is sent out actually.message
- the sent messageException
IoHandler.messageSent(IoSession, Object)
Copyright © 2004–2014 Apache MINA Project. All rights reserved.