Class TcpTransportFactory
java.lang.Object
org.apache.activemq.transport.TransportFactory
org.apache.activemq.transport.tcp.TcpTransportFactory
- Direct Known Subclasses:
NIOTransportFactory,SslTransportFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompositeConfigure(Transport transport, WireFormat format, Map options) 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.protected TransportcreateInactivityMonitor(Transport transport, WireFormat format) protected ServerSocketFactoryprotected SocketFactoryprotected TcpTransportcreateTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) Allows subclasses of TcpTransportFactory to provide a create custom TcpTransport instances.protected TcpTransportServercreateTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.protected TransportcreateTransport(URI location, WireFormat wf) Factory method to create a new transportcreateTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) createTransport(WireFormat wireFormat, Socket socket, TcpTransport.InitBuffer initBuffer) protected booleanisUseInactivityMonitor(Transport transport) Methods inherited from class org.apache.activemq.transport.TransportFactory
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigure
-
Constructor Details
-
TcpTransportFactory
public TcpTransportFactory()
-
-
Method Details
-
doBind
- Specified by:
doBindin classTransportFactory- 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:
- a new TcpTransportServer instance.
- Throws:
IOExceptionURISyntaxException
-
compositeConfigure
Description copied from class:TransportFactorySimilar 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:
compositeConfigurein classTransportFactory- Returns:
-
isUseInactivityMonitor
- Returns:
- true if the inactivity monitor should be used on the transport
-
createTransport
protected Transport createTransport(URI location, WireFormat wf) throws UnknownHostException, IOException Description copied from class:TransportFactoryFactory method to create a new transport- Overrides:
createTransportin classTransportFactory- Throws:
UnknownHostExceptionIOException
-
createTransport
public TcpTransport createTransport(WireFormat wireFormat, Socket socket, TcpTransport.InitBuffer initBuffer) throws IOException - Throws:
IOException
-
createTransport
public TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException - Throws:
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 instances.- Parameters:
wf-socketFactory-location-localLocation-- Returns:
- a new TcpTransport instance connected to the given location.
- Throws:
UnknownHostExceptionIOException
-
createServerSocketFactory
- Throws:
IOException
-
createSocketFactory
- Throws:
IOException
-
createInactivityMonitor
-