org.mule.transport.tcp
Class AbstractTcpSocketFactory
java.lang.Object
org.mule.transport.tcp.AbstractTcpSocketFactory
- All Implemented Interfaces:
- KeyedPoolableObjectFactory
- Direct Known Subclasses:
- SslSocketFactory, TcpSocketFactory
public abstract class AbstractTcpSocketFactory
- extends Object
- implements KeyedPoolableObjectFactory
Creates a client socket using the socket address extracted from the endpoint. Addtional
socket parameters will also be set from the connector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTcpSocketFactory
public AbstractTcpSocketFactory()
makeObject
public Object makeObject(Object key)
throws Exception
- Specified by:
makeObject
in interface KeyedPoolableObjectFactory
- Throws:
Exception
createSocket
protected abstract Socket createSocket(TcpSocketKey key)
throws IOException
- Throws:
IOException
destroyObject
public void destroyObject(Object key,
Object object)
throws Exception
- Specified by:
destroyObject
in interface KeyedPoolableObjectFactory
- Throws:
Exception
validateObject
public boolean validateObject(Object key,
Object object)
- Specified by:
validateObject
in interface KeyedPoolableObjectFactory
activateObject
public void activateObject(Object key,
Object object)
throws Exception
- Specified by:
activateObject
in interface KeyedPoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object key,
Object object)
throws Exception
- Specified by:
passivateObject
in interface KeyedPoolableObjectFactory
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.