public class SessionPool extends AbstractPool<PooledObject<javax.jms.Session>>
Sessions within an application.SessionPoolFactory,
PooledConnectioninitialSize, 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, requestpublic SessionPool(int initialSize,
int maxSize,
javax.jms.Connection connection,
MessageProducerPoolFactory producerPoolFactory)
public java.lang.String toString()
toString in class java.lang.Objectprotected PooledObject<javax.jms.Session> create(java.lang.Object... args)
AbstractPoolcreate 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)
AbstractPoolreset in class AbstractPool<PooledObject<javax.jms.Session>>pooledObject - the object