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.KeyedPoolableObjectFactory
makeObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Exception
public boolean validateObject(Object key, Object obj)
validateObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
validateObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
public void destroyObject(Object key, Object obj) throws Exception
destroyObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
destroyObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Exception
public void activateObject(Object key, Object obj) throws Exception
activateObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
activateObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Exception
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.