Interface SingleSessionIoHandler
- All Known Implementing Classes:
SingleSessionIoHandlerAdapter
Deprecated.
This class is not to be used anymore
A session handler without an
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidevent(FilterEvent event) Deprecated.Invoked when a filter event is fired.voidexceptionCaught(Throwable cause) Deprecated.Invoked when any exception is thrown by userIoHandlerimplementation or by MINA.voidinputClosed(IoSession session) Deprecated.Invoked when a half-duplex connection is closedvoidmessageReceived(Object message) Deprecated.Invoked when protocol message is received.voidmessageSent(Object message) Deprecated.Invoked when protocol message that user requested byIoSession.write(Object)is sent out actually.voidDeprecated.Invoked when the connection is closed.voidDeprecated.Invoked when the session is created.voidsessionIdle(IdleStatus status) Deprecated.Invoked when the connection is idle.voidDeprecated.Invoked when the connection is opened.
-
Method Details
-
sessionCreated
-
sessionOpened
-
sessionClosed
-
sessionIdle
Deprecated.Invoked when the connection is idle. Refer toIdleStatus. This method is not invoked if the transport type is UDP.- Parameters:
status- the type of idleness- Throws:
Exception- If the idle event can't be handled- See Also:
-
exceptionCaught
Deprecated.Invoked when any exception is thrown by userIoHandlerimplementation or by MINA. Ifcauseis instanceofIOException, MINA will close the connection automatically.- Parameters:
cause- the caught exception- Throws:
Exception- If the exception can't be handled- See Also:
-
inputClosed
Deprecated.Invoked when a half-duplex connection is closed- Parameters:
session- The current session
-
messageReceived
-
messageSent
Deprecated.Invoked when protocol message that user requested byIoSession.write(Object)is sent out actually.- Parameters:
message- the sent message- Throws:
Exception- If the sent message can't be processed- See Also:
-
event
Deprecated.Invoked when a filter event is fired. Each filter might sent a different event, this is very application specific.- Parameters:
event- The event to process- Throws:
Exception- If we get an exception while processing the event
-