public class TransportObjectFactory
extends org.apache.commons.pool.BaseKeyedPoolableObjectFactory
| Constructor and Description |
|---|
TransportObjectFactory(Codec codec,
TcpTransportFactory tcpTransportFactory,
AtomicInteger topologyId,
boolean pingOnStartup) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(Object key,
Object obj) |
void |
destroyObject(Object key,
Object obj) |
Object |
makeObject(Object key) |
void |
passivateObject(Object key,
Object obj) |
boolean |
validateObject(Object key,
Object obj)
This will be called by the test thread when testWhileIdle==true.
|
public TransportObjectFactory(Codec codec, TcpTransportFactory tcpTransportFactory, AtomicInteger topologyId, boolean pingOnStartup)
public Object makeObject(Object key) throws Exception
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactorymakeObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactoryExceptionpublic boolean validateObject(Object key, Object obj)
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryvalidateObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactorypublic void destroyObject(Object key, Object obj) throws Exception
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactorydestroyObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactoryExceptionpublic void activateObject(Object key, Object obj) throws Exception
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryactivateObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactoryExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.