@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 |
event(FilterEvent event)
Deprecated.
Invoked when a filter event is fired.
|
void |
exceptionCaught(Throwable cause)
Deprecated.
Invoked when any exception is thrown by user
IoHandler
implementation or by MINA. |
void |
inputClosed(IoSession session)
Deprecated.
Invoked when a half-duplex connection is closed
|
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
- If the session can't be createdIoHandler.sessionCreated(IoSession)
void sessionOpened() throws Exception
Exception
- If the session can't be openedIoHandler.sessionOpened(IoSession)
void sessionClosed() throws Exception
Exception
- If the session can't be closedIoHandler.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
- If the idle event can't be handledIoHandler.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
- If the exception can't be handledIoHandler.exceptionCaught(IoSession, Throwable)
void inputClosed(IoSession session)
session
- The current sessionvoid messageReceived(Object message) throws Exception
message
- the received messageException
- If the received message can't be processedIoHandler.messageReceived(IoSession, Object)
void messageSent(Object message) throws Exception
IoSession.write(Object)
is sent out actually.message
- the sent messageException
- If the sent message can't be processedIoHandler.messageSent(IoSession, Object)
void event(FilterEvent event) throws Exception
event
- The event to processException
- If we get an exception while processing the eventCopyright © 2004–2018 Apache MINA Project. All rights reserved.