com.accendia.iris.server
Interface ISessionListener


public interface ISessionListener

This interface must be implemented by the application session listeners. Session listeners are application objects that are invoked when a client connection is established or closed.


Method Summary
 void init()
          Called by the server when the session listener is initialized.
 void sessionClosed(IConnectionContext session)
          Called by the server when the client specified by the session instance disconnects.
 void sessionOpened(IConnectionContext session)
          Called by the server when a connection is calling an application command for the first time.
 

Method Detail

init

void init()
          throws InitSessionListenerException
Called by the server when the session listener is initialized.

Throws:
InitSessionListenerException - When a Throwable is thrown inside the call.

sessionOpened

void sessionOpened(IConnectionContext session)
Called by the server when a connection is calling an application command for the first time.

Parameters:
session - The client connection.

sessionClosed

void sessionClosed(IConnectionContext session)
Called by the server when the client specified by the session instance disconnects.

Parameters:
session - The client connection.