org.apache.camel.component.sjms
Class SjmsConsumer.MessageConsumerPool

java.lang.Object
  extended by org.apache.camel.component.sjms.jms.ObjectPool<SjmsConsumer.MessageConsumerResources>
      extended by org.apache.camel.component.sjms.SjmsConsumer.MessageConsumerPool
Enclosing class:
SjmsConsumer

protected class SjmsConsumer.MessageConsumerPool
extends ObjectPool<SjmsConsumer.MessageConsumerResources>

A pool of MessageConsumerResources created at the initialization of the associated consumer.


Field Summary
 
Fields inherited from class org.apache.camel.component.sjms.jms.ObjectPool
logger
 
Constructor Summary
SjmsConsumer.MessageConsumerPool()
           
 
Method Summary
protected  SjmsConsumer.MessageConsumerResources createObject()
          Creates a new MessageConsumerResources instance.
protected  void destroyObject(SjmsConsumer.MessageConsumerResources model)
          Cleans up the MessageConsumerResources.
 
Methods inherited from class org.apache.camel.component.sjms.jms.ObjectPool
borrowObject, borrowObject, drainPool, fillPool, getLock, getMaxSize, returnObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SjmsConsumer.MessageConsumerPool

public SjmsConsumer.MessageConsumerPool()
Method Detail

createObject

protected SjmsConsumer.MessageConsumerResources createObject()
                                                      throws Exception
Creates a new MessageConsumerResources instance.

Specified by:
createObject in class ObjectPool<SjmsConsumer.MessageConsumerResources>
Returns:
Throws:
Exception
See Also:
ObjectPool.createObject()

destroyObject

protected void destroyObject(SjmsConsumer.MessageConsumerResources model)
                      throws Exception
Cleans up the MessageConsumerResources.

Specified by:
destroyObject in class ObjectPool<SjmsConsumer.MessageConsumerResources>
Throws:
Exception
See Also:
ObjectPool.destroyObject(java.lang.Object)


Apache Camel