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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractManagedConnection
public AbstractManagedConnection()
- Construct a new
AbstractManagedConnection
.
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.