net.sf.cindy
Interface SessionHandler

All Known Implementing Classes:
SessionHandlerAdapter

public interface SessionHandler

Session handler.

Version:
$id$
Author:
Roger Chen

Method Summary
 void exceptionCaught(Session session, java.lang.Throwable cause)
          Session caught a exception.
 void objectReceived(Session session, java.lang.Object obj)
          Session received a object which is decoded by PacketDecoder.
 void objectSent(Session session, java.lang.Object obj)
          Session sent a object.
 void sessionClosed(Session session)
          Session have closed.
 void sessionStarted(Session session)
          Session have started.
 void sessionTimeout(Session session)
          Session timeout, but not closed.
 

Method Detail

sessionStarted

void sessionStarted(Session session)
                    throws java.lang.Exception
Session have started.

Parameters:
session - session
Throws:
java.lang.Exception - any exception

sessionClosed

void sessionClosed(Session session)
                   throws java.lang.Exception
Session have closed.

Parameters:
session - session
Throws:
java.lang.Exception - any exception

sessionTimeout

void sessionTimeout(Session session)
                    throws java.lang.Exception
Session timeout, but not closed.

Parameters:
session - session
Throws:
java.lang.Exception - any exception

objectReceived

void objectReceived(Session session,
                    java.lang.Object obj)
                    throws java.lang.Exception
Session received a object which is decoded by PacketDecoder.

Parameters:
session - session
obj - object
Throws:
java.lang.Exception - any exception

objectSent

void objectSent(Session session,
                java.lang.Object obj)
                throws java.lang.Exception
Session sent a object.

Parameters:
session - session
obj - object
Throws:
java.lang.Exception - any exception

exceptionCaught

void exceptionCaught(Session session,
                     java.lang.Throwable cause)
Session caught a exception.

Parameters:
session - session
cause - exception