Class AutoNioTransportFactory
- java.lang.Object
-
- org.apache.activemq.transport.TransportFactory
-
- org.apache.activemq.transport.tcp.TcpTransportFactory
-
- org.apache.activemq.transport.nio.NIOTransportFactory
-
- org.apache.activemq.transport.auto.nio.AutoNioTransportFactory
-
- All Implemented Interfaces:
BrokerServiceAware
public class AutoNioTransportFactory extends NIOTransportFactory implements BrokerServiceAware
-
-
Field Summary
Fields Modifier and Type Field Description protected BrokerService
brokerService
-
Constructor Summary
Constructors Constructor Description AutoNioTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AutoTcpTransportServer
createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory)
Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.TransportServer
doBind(URI location)
void
setBrokerService(BrokerService brokerService)
-
Methods inherited from class org.apache.activemq.transport.nio.NIOTransportFactory
createServerSocketFactory, createSocketFactory, createTcpTransport, createTransport
-
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory
compositeConfigure, createInactivityMonitor, createTransport, createTransport, isUseInactivityMonitor
-
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
-
-
-
-
Field Detail
-
brokerService
protected BrokerService brokerService
-
-
Method Detail
-
setBrokerService
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerService
in interfaceBrokerServiceAware
-
createTcpTransportServer
protected AutoTcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException
Description copied from class:TcpTransportFactory
Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.- Overrides:
createTcpTransportServer
in classNIOTransportFactory
- Returns:
- a new TcpTransportServer instance.
- Throws:
IOException
URISyntaxException
-
doBind
public TransportServer doBind(URI location) throws IOException
- Overrides:
doBind
in classTcpTransportFactory
- Throws:
IOException
-
-