org.apache.activemq.transport.tcp
Class TcpTransportFactory
java.lang.Object
org.apache.activemq.transport.TransportFactory
org.apache.activemq.transport.tcp.TcpTransportFactory
- Direct Known Subclasses:
- SslTransportFactory, StompTransportFactory, XmppTransportFactory
public class TcpTransportFactory
- extends TransportFactory
Methods inherited from class org.apache.activemq.transport.TransportFactory |
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getDefaultWireFormatType, serverConfigure |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcpTransportFactory
public TcpTransportFactory()
doBind
public TransportServer doBind(String brokerId,
URI location)
throws IOException
- Specified by:
doBind
in class TransportFactory
- Throws:
IOException
createTcpTransportServer
protected TcpTransportServer createTcpTransportServer(URI location,
ServerSocketFactory serverSocketFactory)
throws IOException,
URISyntaxException
- Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.
- Parameters:
location
- serverSocketFactory
-
- Returns:
-
- Throws:
IOException
URISyntaxException
compositeConfigure
public Transport compositeConfigure(Transport transport,
WireFormat format,
Map options)
- Description copied from class:
TransportFactory
- Similar to configure(...) but this avoid adding in the MutexTransport and ResponseCorrelator transport layers
so that the resulting transport can more efficiently be used as part of a composite transport.
- Overrides:
compositeConfigure
in class TransportFactory
- Returns:
createTransport
protected Transport createTransport(URI location,
WireFormat wf)
throws UnknownHostException,
IOException
- Description copied from class:
TransportFactory
- Factory method to create a new transport
- Overrides:
createTransport
in class TransportFactory
- Throws:
UnknownHostException
IOException
createTcpTransport
protected TcpTransport createTcpTransport(WireFormat wf,
SocketFactory socketFactory,
URI location,
URI localLocation)
throws UnknownHostException,
IOException
- Allows subclasses of TcpTransportFactory to provide a create custom TcpTransport intances.
- Parameters:
location
- wf
- socketFactory
- localLocation
-
- Returns:
-
- Throws:
UnknownHostException
IOException
createServerSocketFactory
protected ServerSocketFactory createServerSocketFactory()
createSocketFactory
protected SocketFactory createSocketFactory()
Copyright © 2011 Apache Software Foundation. All Rights Reserved.