org.apache.activemq.pool
Class ConnectionPool

Holds a real JMS connection along with the session pools associated with it.

Instances of this class are shared amongst one or more PooledConnection object and must
track the session objects that are loaned out for cleanup on close as well as ensuring
that the temporary destinations of the managed Connection are purged when all references
to this ConnectionPool are released.

setBlockIfSessionPoolIsFull(boolean block)
Configure whether the createSession method should block when there are no more idle sessions and the
pool already contains the maximum number of active sessions.

incrementReferenceCount

decrementReferenceCount

expiredCheck

A ConnectionPool is considered expired when all references to it are released AND either
the configured idleTimeout has elapsed OR the configured expiryTimeout has elapsed.
Once a ConnectionPool is determined to have expired its underlying Connection is closed.

setBlockIfSessionPoolIsFull

Configure whether the createSession method should block when there are no more idle sessions and the
pool already contains the maximum number of active sessions. If false the create method will fail
and throw an exception.

Parameters:

block - Indicates whether blocking should be used to wait for more space to create a session.