org.jboss.messaging.core.server.impl
Class ConnectionManagerImpl
java.lang.Object
org.jboss.messaging.core.server.impl.ConnectionManagerImpl
- All Implemented Interfaces:
- RemotingSessionListener, ConnectionManager
public class ConnectionManagerImpl
- extends java.lang.Object
- implements ConnectionManager, RemotingSessionListener
- Version:
- $Revision: 3778 $
$Id: ConnectionManagerImpl.java 3778 2008-02-24 12:15:29Z timfox $
- Author:
- Tim Fox, Ovidiu Feodorov, Jeff Mesnil
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConnectionManagerImpl
public ConnectionManagerImpl()
registerConnection
public void registerConnection(long remotingClientSessionID,
ServerConnection endpoint)
- Specified by:
registerConnection
in interface ConnectionManager
unregisterConnection
public ServerConnection unregisterConnection(long remotingClientSessionID,
ServerConnection endpoint)
- Specified by:
unregisterConnection
in interface ConnectionManager
- Returns:
- null if there is no such connection.
getActiveConnections
public java.util.List<ServerConnection> getActiveConnections()
- Description copied from interface:
ConnectionManager
- Returns a list of active connection endpoints currently maintained by an instance of this
manager. The implementation should make a copy of the list to avoid
ConcurrentModificationException. The list could be empty, but never null.
- Specified by:
getActiveConnections
in interface ConnectionManager
- Returns:
- List
sessionDestroyed
public void sessionDestroyed(long sessionID,
MessagingException me)
- Description copied from interface:
RemotingSessionListener
- This method is called when a remoting session is destroyed. It can be
destroyed as part of its normal lifecycle after a clean close or if there
has been a problem (e.g. network failure).
If the session was closed properly,
me
is null
,
otherwise me
contains the exception which caused the
abnormal close.
- Specified by:
sessionDestroyed
in interface RemotingSessionListener
- Parameters:
sessionID
- the ID of the sessionme
- null
if the session was closed properly
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2006 JBoss Inc. All Rights Reserved.