|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.objectpools.JMSClientKeyedPoolFactory.JMSClientPoolableObjectFactory
protected static class JMSClientKeyedPoolFactory.JMSClientPoolableObjectFactory
Inner class that implements org.apache.commons.pool.KeyedPoolableObjectFactory, which is instantiated by the enclosing class and passed to GenericObjectPool's constructor.
| Field Summary | |
|---|---|
protected java.lang.String |
thisClassName
The full name of this class |
| Constructor Summary | |
|---|---|
JMSClientKeyedPoolFactory.JMSClientPoolableObjectFactory()
Create a new instance of JMSProducerPoolableObjectFactory. |
|
| Method Summary | |
|---|---|
void |
activateObject(java.lang.Object poolKey,
java.lang.Object obj)
Invoked on every object before it is returned FROM the pool. |
void |
destroyObject(java.lang.Object poolKey,
java.lang.Object obj)
Invoked on every object when it is being "dropped" from the pool. |
java.lang.Object |
makeObject(java.lang.Object poolKey)
Called whenever a new instance of a pooled object is needed. |
void |
passivateObject(java.lang.Object poolKey,
java.lang.Object obj)
Invoked on every object before it is returned TO the pool. |
boolean |
validateObject(java.lang.Object poolKey,
java.lang.Object obj)
validateObject is invoked based on the settings of the 'testOnBorrow', 'testOnReturn', and 'testWhileIdle' configuration properties of the <pool-configuration>
content model in the pool factory configuration file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String thisClassName
| Constructor Detail |
|---|
public JMSClientKeyedPoolFactory.JMSClientPoolableObjectFactory()
| Method Detail |
|---|
public java.lang.Object makeObject(java.lang.Object poolKey)
throws java.lang.Exception
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactorypoolKey - poolKey points to a pooled object configuration
entry in the JMSClientKeyedPoolFactory configuration file.
java.lang.Exception
public void destroyObject(java.lang.Object poolKey,
java.lang.Object obj)
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
public boolean validateObject(java.lang.Object poolKey,
java.lang.Object obj)
<pool-configuration>
content model in the pool factory configuration file.
For example, if 'testOnBorrow' is true, then the apache
pool implementation invokes this method when objects
are borrowed from the pool.
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
public void activateObject(java.lang.Object poolKey,
java.lang.Object obj)
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
public void passivateObject(java.lang.Object poolKey,
java.lang.Object obj)
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||