org.apache.activemq.pool
Class PooledConnection

java.lang.Object
  extended by org.apache.activemq.jms.pool.PooledConnection
      extended by org.apache.activemq.pool.PooledConnection
All Implemented Interfaces:
Connection, QueueConnection, TopicConnection, Closeable, EnhancedConnection

public class PooledConnection
extends PooledConnection
implements EnhancedConnection


Field Summary
 
Fields inherited from class org.apache.activemq.jms.pool.PooledConnection
pool
 
Constructor Summary
PooledConnection(ConnectionPool connection)
           
 
Method Summary
 DestinationSource getDestinationSource()
          Returns the DestinationSource object which can be used to listen to destinations being created or destroyed or to enquire about the current destinations available on the broker
 
Methods inherited from class org.apache.activemq.jms.pool.PooledConnection
assertNotClosed, cleanupAllLoanedSessions, cleanupConnectionTemporaryDestinations, close, createConnectionConsumer, createConnectionConsumer, createConnectionConsumer, createDurableConnectionConsumer, createQueueSession, createSession, createSession, createTopicSession, getClientID, getConnection, getExceptionListener, getMetaData, getNumActiveSessions, getNumSessions, getNumtIdleSessions, newInstance, onSessionClosed, onTemporaryQueueCreate, onTemporaryTopicCreate, setClientID, setExceptionListener, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer, createTopicSession
 
Methods inherited from interface javax.jms.QueueConnection
createConnectionConsumer, createQueueSession
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from interface org.apache.activemq.Closeable
close
 

Constructor Detail

PooledConnection

public PooledConnection(ConnectionPool connection)
Method Detail

getDestinationSource

public DestinationSource getDestinationSource()
                                       throws JMSException
Description copied from interface: EnhancedConnection
Returns the DestinationSource object which can be used to listen to destinations being created or destroyed or to enquire about the current destinations available on the broker

Specified by:
getDestinationSource in interface EnhancedConnection
Returns:
a lazily created destination source
Throws:
JMSException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.