public class UdpSocketFactory extends Object implements org.apache.commons.pool.KeyedPoolableObjectFactory
Modifier and Type | Field and Description |
---|---|
protected 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 Log logger
public Object makeObject(Object key) throws Exception
makeObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Exception
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
protected DatagramSocket createSocket() throws IOException
IOException
protected DatagramSocket createSocket(int port) throws IOException
IOException
protected DatagramSocket createSocket(int port, InetAddress inetAddress) throws IOException
IOException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.