public class SessionPool extends AbstractPool<PooledObject<javax.jms.Session>>
Session
s within an application.SessionPoolFactory
,
PooledConnection
initialSize, maxSize, pool
Constructor and Description |
---|
SessionPool(int initialSize,
int maxSize,
javax.jms.Connection connection,
MessageProducerPoolFactory producerPoolFactory) |
Modifier and Type | Method and Description |
---|---|
protected PooledObject<javax.jms.Session> |
create(java.lang.Object... args)
Create an object for the pool.
|
protected void |
reset(PooledObject<javax.jms.Session> pooledObject)
Reset the provided object so it can be returned to the pool for reuse.
|
java.lang.String |
toString() |
release, request
public SessionPool(int initialSize, int maxSize, javax.jms.Connection connection, MessageProducerPoolFactory producerPoolFactory)
public java.lang.String toString()
toString
in class java.lang.Object
protected PooledObject<javax.jms.Session> create(java.lang.Object... args)
AbstractPool
create
in class AbstractPool<PooledObject<javax.jms.Session>>
args
- the arguments to be provided to the create method.<T>
for the pool.protected void reset(PooledObject<javax.jms.Session> pooledObject)
AbstractPool
reset
in class AbstractPool<PooledObject<javax.jms.Session>>
pooledObject
- the object