org.mule.transport.udp
Class UdpSocketFactory
java.lang.Object
org.mule.transport.udp.UdpSocketFactory
- All Implemented Interfaces:
- KeyedPoolableObjectFactory
- Direct Known Subclasses:
- MulticastSocketFactory
public class UdpSocketFactory
- extends java.lang.Object
- implements KeyedPoolableObjectFactory
Creates a client socket using the host and port address supplied in the endpoint URI. Addtional
socket parameters will also be set from the connector
Field Summary |
protected Log |
logger
logger used by this class |
Method Summary |
void |
activateObject(java.lang.Object key,
java.lang.Object object)
|
protected java.net.DatagramSocket |
createSocket()
|
protected java.net.DatagramSocket |
createSocket(int port)
|
protected java.net.DatagramSocket |
createSocket(int port,
java.net.InetAddress inetAddress)
|
void |
destroyObject(java.lang.Object key,
java.lang.Object object)
|
java.lang.Object |
makeObject(java.lang.Object key)
|
void |
passivateObject(java.lang.Object key,
java.lang.Object object)
|
boolean |
validateObject(java.lang.Object key,
java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient Log logger
- logger used by this class
UdpSocketFactory
public UdpSocketFactory()
makeObject
public java.lang.Object makeObject(java.lang.Object key)
throws java.lang.Exception
- Specified by:
makeObject
in interface KeyedPoolableObjectFactory
- Throws:
java.lang.Exception
destroyObject
public void destroyObject(java.lang.Object key,
java.lang.Object object)
throws java.lang.Exception
- Specified by:
destroyObject
in interface KeyedPoolableObjectFactory
- Throws:
java.lang.Exception
validateObject
public boolean validateObject(java.lang.Object key,
java.lang.Object object)
- Specified by:
validateObject
in interface KeyedPoolableObjectFactory
activateObject
public void activateObject(java.lang.Object key,
java.lang.Object object)
throws java.lang.Exception
- Specified by:
activateObject
in interface KeyedPoolableObjectFactory
- Throws:
java.lang.Exception
passivateObject
public void passivateObject(java.lang.Object key,
java.lang.Object object)
throws java.lang.Exception
- Specified by:
passivateObject
in interface KeyedPoolableObjectFactory
- Throws:
java.lang.Exception
createSocket
protected java.net.DatagramSocket createSocket()
throws java.io.IOException
- Throws:
java.io.IOException
createSocket
protected java.net.DatagramSocket createSocket(int port)
throws java.io.IOException
- Throws:
java.io.IOException
createSocket
protected java.net.DatagramSocket createSocket(int port,
java.net.InetAddress inetAddress)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.