|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.sjms.jms.ObjectPool<javax.jms.Session>
org.apache.camel.component.sjms.jms.SessionPool
public class SessionPool
TODO Add Class documentation for SessionPool
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.component.sjms.jms.ObjectPool |
|---|
logger |
| Constructor Summary | |
|---|---|
SessionPool(int poolSize)
TODO Add Constructor Javadoc |
|
SessionPool(int poolSize,
ConnectionResource connectionResource)
TODO Add Constructor Javadoc |
|
| Method Summary | |
|---|---|
protected javax.jms.Session |
createObject()
Implement to create new objects of type T when the pool is initialized empty. |
protected XAResource |
createXaResource(javax.jms.XASession session)
|
protected void |
destroyObject(javax.jms.Session session)
Clean up pool objects |
SessionAcknowledgementType |
getAcknowledgeMode()
Gets the SessionAcknowledgementType value of acknowledgeMode for this instance of SessionPool. |
ConnectionResource |
getConnectionResource()
Gets the ConnectionFactoryResource value of connectionResource for this instance of SessionPool. |
boolean |
isTransacted()
Gets the boolean value of transacted for this instance of SessionPool. |
void |
setAcknowledgeMode(SessionAcknowledgementType acknowledgeMode)
Sets the SessionAcknowledgementType value of acknowledgeMode for this instance of SessionPool. |
void |
setTransacted(boolean transacted)
Sets the boolean value of transacted for this instance of SessionPool. |
| 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 |
|---|
public SessionPool(int poolSize,
ConnectionResource connectionResource)
public SessionPool(int poolSize)
poolSize - | Method Detail |
|---|
protected javax.jms.Session createObject()
throws Exception
ObjectPool
createObject in class ObjectPool<javax.jms.Session>Exception
protected void destroyObject(javax.jms.Session session)
throws Exception
ObjectPool
destroyObject in class ObjectPool<javax.jms.Session>Exceptionpublic final SessionAcknowledgementType getAcknowledgeMode()
public final void setAcknowledgeMode(SessionAcknowledgementType acknowledgeMode)
acknowledgeMode - Sets SessionAcknowledgementType, default is AUTO_ACKNOWLEDGEpublic final boolean isTransacted()
public final void setTransacted(boolean transacted)
transacted - Sets boolean, default is TODO add defaultpublic ConnectionResource getConnectionResource()
protected XAResource createXaResource(javax.jms.XASession session)
throws javax.jms.JMSException
javax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||