com.lyrisoft.chat
Interface IConnectionHandler

All Known Implementing Classes:
ConnectionHandlerLocal, HttpConnectionHandler, ConnectionHandler, ServletConnectionHandler

public interface IConnectionHandler

Interface that ConnectionHandlers must implement


Method Summary
 void queueMessage(java.lang.String message)
          Queue a message headed outbound.
 void sendImmediately(java.lang.String message)
          Send a message immediately.
 void setListener(IConnectionListener listener)
          Set the connection listener for this connection handler
 void shutdown(boolean notify)
          Shutdown this connection listener.
 

Method Detail

queueMessage

public void queueMessage(java.lang.String message)
Queue a message headed outbound.

sendImmediately

public void sendImmediately(java.lang.String message)
Send a message immediately.

shutdown

public void shutdown(boolean notify)
Shutdown this connection listener. The notify parameter indicates whether or not the client (ConnectionListener) should be notified of the shutdown. Basically, notify should only be false if the client itself called us.
Parameters:
notify - to notify the ConnectionListener

setListener

public void setListener(IConnectionListener listener)
Set the connection listener for this connection handler


Copyright © 2000-2002 Taso Lyristis