org.exolab.jms.net.connector
Class AbstractManagedConnection

java.lang.Object
  |
  +--org.exolab.jms.net.connector.AbstractManagedConnection
All Implemented Interfaces:
ManagedConnection
Direct Known Subclasses:
MultiplexedManagedConnection

public abstract class AbstractManagedConnection
extends java.lang.Object
implements ManagedConnection

Abstract implementation of the ManagedConnection interface.

Version:
$Revision: 1.4 $ $Date: 2005/06/04 14:28:52 $
Author:
Tim Anderson

Constructor Summary
AbstractManagedConnection()
          Construct a new AbstractManagedConnection.
 
Method Summary
protected  ManagedConnectionListener getConnectionEventListener()
          Returns the connection event listener.
protected  void notifyClosed()
          Notifies when the peer closes the physical connection.
protected  void notifyError(java.lang.Throwable error)
          Notifies of an error on the physical connection.
 void setConnectionEventListener(ManagedConnectionListener listener)
          Registers a connection event listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exolab.jms.net.connector.ManagedConnection
destroy, getConnection, getLocalURI, getPrincipal, getRemoteURI, ping, setInvocationHandler
 

Constructor Detail

AbstractManagedConnection

public AbstractManagedConnection()
Construct a new AbstractManagedConnection.
Method Detail

setConnectionEventListener

public void setConnectionEventListener(ManagedConnectionListener listener)
                                throws ResourceException
Registers a connection event listener.
Specified by:
setConnectionEventListener in interface ManagedConnection
Parameters:
listener - the connection event listener
Throws:
ResourceException - for any error

notifyClosed

protected void notifyClosed()
Notifies when the peer closes the physical connection.

notifyError

protected void notifyError(java.lang.Throwable error)
Notifies of an error on the physical connection.
Parameters:
error - the error

getConnectionEventListener

protected ManagedConnectionListener getConnectionEventListener()
Returns the connection event listener.
Returns:
the connection event listener, or null if no listener is registered


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.