public abstract class AbstractTcpSocketFactory extends Object implements org.apache.commons.pool.KeyedPoolableObjectFactory
Constructor and Description |
---|
AbstractTcpSocketFactory() |
Modifier and Type | Method and Description |
---|---|
void |
activateObject(Object key,
Object object) |
protected abstract Socket |
createSocket(TcpSocketKey key) |
void |
destroyObject(Object key,
Object object) |
int |
getConnectionTimeout() |
Object |
makeObject(Object key) |
void |
passivateObject(Object key,
Object object) |
void |
setConnectionTimeout(int connectionTimeout) |
boolean |
validateObject(Object key,
Object object) |
public Object makeObject(Object key) throws Exception
makeObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Exception
protected abstract Socket createSocket(TcpSocketKey key) throws IOException
IOException
public void destroyObject(Object key, Object object) throws Exception
destroyObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Exception
public boolean validateObject(Object key, Object object)
validateObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
public void activateObject(Object key, Object object) throws Exception
activateObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Exception
public void passivateObject(Object key, Object object) throws Exception
passivateObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Exception
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.