Class MQTTNIOTransportFactory
java.lang.Object
org.apache.activemq.transport.TransportFactory
org.apache.activemq.transport.tcp.TcpTransportFactory
org.apache.activemq.transport.nio.NIOTransportFactory
org.apache.activemq.transport.mqtt.MQTTNIOTransportFactory
- All Implemented Interfaces:
BrokerServiceAware
- Direct Known Subclasses:
MQTTNIOSSLTransportFactory
A MQTT over NIO transport factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompositeConfigure(Transport transport, org.apache.activemq.wireformat.WireFormat format, Map options) protected TransportcreateInactivityMonitor(Transport transport, org.apache.activemq.wireformat.WireFormat format) protected org.apache.activemq.transport.tcp.TcpTransportcreateTcpTransport(org.apache.activemq.wireformat.WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) protected org.apache.activemq.transport.tcp.TcpTransportServercreateTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) org.apache.activemq.transport.tcp.TcpTransportcreateTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) protected StringserverConfigure(Transport transport, org.apache.activemq.wireformat.WireFormat format, HashMap options) voidsetBrokerService(BrokerService brokerService) Methods inherited from class org.apache.activemq.transport.nio.NIOTransportFactory
createServerSocketFactory, createSocketFactoryMethods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory
createTransport, createTransport, doBind, isUseInactivityMonitorMethods inherited from class org.apache.activemq.transport.TransportFactory
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactory
-
Constructor Details
-
MQTTNIOTransportFactory
public MQTTNIOTransportFactory()
-
-
Method Details
-
getDefaultWireFormatType
- Overrides:
getDefaultWireFormatTypein classTransportFactory
-
createTcpTransportServer
protected org.apache.activemq.transport.tcp.TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException - Overrides:
createTcpTransportServerin classNIOTransportFactory- Throws:
IOExceptionURISyntaxException
-
createTcpTransport
protected org.apache.activemq.transport.tcp.TcpTransport createTcpTransport(org.apache.activemq.wireformat.WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException - Overrides:
createTcpTransportin classNIOTransportFactory- Throws:
UnknownHostExceptionIOException
-
createTransport
public org.apache.activemq.transport.tcp.TcpTransport createTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) throws IOException - Overrides:
createTransportin classNIOTransportFactory- Throws:
IOException
-
serverConfigure
public Transport serverConfigure(Transport transport, org.apache.activemq.wireformat.WireFormat format, HashMap options) throws Exception - Overrides:
serverConfigurein classTransportFactory- Throws:
Exception
-
compositeConfigure
public Transport compositeConfigure(Transport transport, org.apache.activemq.wireformat.WireFormat format, Map options) - Overrides:
compositeConfigurein classorg.apache.activemq.transport.tcp.TcpTransportFactory
-
setBrokerService
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
createInactivityMonitor
protected Transport createInactivityMonitor(Transport transport, org.apache.activemq.wireformat.WireFormat format) - Overrides:
createInactivityMonitorin classorg.apache.activemq.transport.tcp.TcpTransportFactory
-