org.codehaus.activemq.transport.tcp
Class SfTransportChannelFactory
java.lang.Object
org.codehaus.activemq.transport.TransportChannelFactorySupport
org.codehaus.activemq.transport.tcp.TcpTransportChannelFactory
org.codehaus.activemq.transport.tcp.SfTransportChannelFactory
- All Implemented Interfaces:
- TransportChannelFactory
- Direct Known Subclasses:
- SslTransportChannelFactory
- public class SfTransportChannelFactory
- extends TcpTransportChannelFactory
A factory of TcpTransportChannelFactory instances using a SocketFactory
- Version:
- $Revision: 1.6 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SfTransportChannelFactory
public SfTransportChannelFactory(SocketFactory socketFactory)
create
public TransportChannel create(WireFormat wireFormat,
URI remoteLocation)
throws JMSException
- Create a Channel to a remote Node - e.g. a Broker
- Specified by:
create
in interface TransportChannelFactory
- Overrides:
create
in class TcpTransportChannelFactory
- Parameters:
wireFormat
- remoteLocation
-
- Returns:
- the TransportChannel bound to the remote node
- Throws:
JMSException
create
public TransportChannel create(WireFormat wireFormat,
URI remoteLocation,
URI localLocation)
throws JMSException
- Create a Channel to a remote Node - e.g. a Broker
- Specified by:
create
in interface TransportChannelFactory
- Overrides:
create
in class TcpTransportChannelFactory
- Parameters:
wireFormat
- remoteLocation
- localLocation
- -
e.g. local InetAddress and local port
- Returns:
- the TransportChannel bound to the remote node
- Throws:
JMSException
createSocket
protected Socket createSocket(URI remoteLocation)
throws IOException
- Throws:
IOException
createSocket
protected Socket createSocket(URI remoteLocation,
URI localLocation)
throws IOException
- Throws:
IOException
Copyright © 2004 Protique, Ltd.. All Rights Reserved.