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