public class UdpSocketFactory extends Object implements org.apache.commons.pool.KeyedPoolableObjectFactory
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
| Constructor and Description |
|---|
UdpSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(Object key,
Object object) |
protected DatagramSocket |
createSocket() |
protected DatagramSocket |
createSocket(int port) |
protected DatagramSocket |
createSocket(int port,
InetAddress inetAddress) |
void |
destroyObject(Object key,
Object object) |
Object |
makeObject(Object key) |
void |
passivateObject(Object key,
Object object) |
boolean |
validateObject(Object key,
Object object) |
protected final transient org.apache.commons.logging.Log logger
public Object makeObject(Object key) throws Exception
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryExceptionpublic void destroyObject(Object key, Object object) throws Exception
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryExceptionpublic boolean validateObject(Object key, Object object)
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactorypublic void activateObject(Object key, Object object) throws Exception
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryExceptionpublic void passivateObject(Object key, Object object) throws Exception
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryExceptionprotected DatagramSocket createSocket() throws IOException
IOExceptionprotected DatagramSocket createSocket(int port) throws IOException
IOExceptionprotected DatagramSocket createSocket(int port, InetAddress inetAddress) throws IOException
IOExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.