org.apache.mina.common
Interface SessionManager

All Known Subinterfaces:
IoAcceptor, IoConnector, IoSessionManager, ProtocolAcceptor, ProtocolConnector, ProtocolSessionManager
All Known Implementing Classes:
BaseSessionManager, DatagramAcceptor, DatagramConnector, IoProtocolAcceptor, IoProtocolConnector, SocketAcceptor, SocketConnector, VmPipeAcceptor, VmPipeConnector

public interface SessionManager

Base interface for all acceptors and connectors that manage sessions.

You can monitor any uncaught exceptions by setting ExceptionMonitor by calling setExceptionMonitor(ExceptionMonitor). The default monitor is DefaultExceptionMonitor.

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)

Method Summary
 ExceptionMonitor getExceptionMonitor()
          Returns the current exception monitor.
 void setExceptionMonitor(ExceptionMonitor monitor)
          Sets the uncaught exception monitor.
 

Method Detail

getExceptionMonitor

ExceptionMonitor getExceptionMonitor()
Returns the current exception monitor.


setExceptionMonitor

void setExceptionMonitor(ExceptionMonitor monitor)
Sets the uncaught exception monitor. If null is specified, a new instance of DefaultExceptionMonitor will be set.

Parameters:
monitor - A new instance of DefaultExceptionMonitor is set if null is specified.


Copyright © 2004-2005 . All Rights Reserved.