|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.handler.multiton.SingleSessionIoHandlerDelegate
@Deprecated public class SingleSessionIoHandlerDelegate
An IoHandler implementation which delegates all requests to
SingleSessionIoHandlers. A SingleSessionIoHandlerFactory
is used to create a new SingleSessionIoHandler for each newly
created session.
WARNING : This IoHandler implementation may be easier to understand and
thus to use but the user should be aware that creating one handler by session
will lower scalability if building an high performance server. This should only
be used with very specific needs in mind.
| Field Summary | |
|---|---|
static AttributeKey |
HANDLER
Deprecated. The key used to store the SingleSessionIoHandler as a session
attribute. |
| Constructor Summary | |
|---|---|
SingleSessionIoHandlerDelegate(SingleSessionIoHandlerFactory factory)
Deprecated. Creates a new instance that uses the passed in SingleSessionIoHandlerFactory to create new
SingleSessionIoHandlers. |
|
| Method Summary | |
|---|---|
void |
exceptionCaught(IoSession session,
Throwable cause)
Deprecated. Delegates the method call to the SingleSessionIoHandler.exceptionCaught(Throwable) method of the
handler assigned to this session. |
SingleSessionIoHandlerFactory |
getFactory()
Deprecated. Returns the SingleSessionIoHandlerFactory that is used to create a new
SingleSessionIoHandler instance. |
void |
messageReceived(IoSession session,
Object message)
Deprecated. Delegates the method call to the SingleSessionIoHandler.messageReceived(Object) method of the
handler assigned to this session. |
void |
messageSent(IoSession session,
Object message)
Deprecated. Delegates the method call to the SingleSessionIoHandler.messageSent(Object) method of the handler
assigned to this session. |
void |
sessionClosed(IoSession session)
Deprecated. Delegates the method call to the SingleSessionIoHandler.sessionClosed() method of the handler
assigned to this session. |
void |
sessionCreated(IoSession session)
Deprecated. Creates a new instance with the factory passed to the constructor of this class. |
void |
sessionIdle(IoSession session,
IdleStatus status)
Deprecated. Delegates the method call to the SingleSessionIoHandler.sessionIdle(IdleStatus) method of the
handler assigned to this session. |
void |
sessionOpened(IoSession session)
Deprecated. Delegates the method call to the SingleSessionIoHandler.sessionOpened() method of the handler
assigned to this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AttributeKey HANDLER
SingleSessionIoHandler as a session
attribute.
| Constructor Detail |
|---|
public SingleSessionIoHandlerDelegate(SingleSessionIoHandlerFactory factory)
SingleSessionIoHandlerFactory to create new
SingleSessionIoHandlers.
factory - the factory for SingleSessionIoHandlers| Method Detail |
|---|
public SingleSessionIoHandlerFactory getFactory()
SingleSessionIoHandlerFactory that is used to create a new
SingleSessionIoHandler instance.
public void sessionCreated(IoSession session)
throws Exception
HANDLER.
sessionCreated in interface IoHandlerExceptionIoHandler.sessionCreated(org.apache.mina.core.session.IoSession)
public void sessionOpened(IoSession session)
throws Exception
SingleSessionIoHandler.sessionOpened() method of the handler
assigned to this session.
sessionOpened in interface IoHandlerException
public void sessionClosed(IoSession session)
throws Exception
SingleSessionIoHandler.sessionClosed() method of the handler
assigned to this session.
sessionClosed in interface IoHandlerException
public void sessionIdle(IoSession session,
IdleStatus status)
throws Exception
SingleSessionIoHandler.sessionIdle(IdleStatus) method of the
handler assigned to this session.
sessionIdle in interface IoHandlerException
public void exceptionCaught(IoSession session,
Throwable cause)
throws Exception
SingleSessionIoHandler.exceptionCaught(Throwable) method of the
handler assigned to this session.
exceptionCaught in interface IoHandlerException
public void messageReceived(IoSession session,
Object message)
throws Exception
SingleSessionIoHandler.messageReceived(Object) method of the
handler assigned to this session.
messageReceived in interface IoHandlerException
public void messageSent(IoSession session,
Object message)
throws Exception
SingleSessionIoHandler.messageSent(Object) method of the handler
assigned to this session.
messageSent in interface IoHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||