Package org.apache.activemq.pool
Class PooledConnection
- java.lang.Object
-
- org.apache.activemq.jms.pool.PooledConnection
-
- 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
Constructors Constructor Description PooledConnection(ConnectionPool connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestinationSource
getDestinationSource()
Returns theDestinationSource
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.Connection
close, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
-
Methods inherited from interface javax.jms.QueueConnection
createConnectionConsumer, createQueueSession
-
Methods inherited from interface javax.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer, createTopicSession
-
-
-
-
Constructor Detail
-
PooledConnection
public PooledConnection(ConnectionPool connection)
-
-
Method Detail
-
getDestinationSource
public DestinationSource getDestinationSource() throws JMSException
Description copied from interface:EnhancedConnection
Returns theDestinationSource
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 interfaceEnhancedConnection
- Returns:
- a lazily created destination source
- Throws:
JMSException
-
-