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
public class MQTTNIOTransportFactory extends NIOTransportFactory implements BrokerServiceAware
A MQTT over NIO transport factory
-
-
Constructor Summary
Constructors Constructor Description MQTTNIOTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportcompositeConfigure(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 StringgetDefaultWireFormatType()TransportserverConfigure(Transport transport, org.apache.activemq.wireformat.WireFormat format, HashMap options)voidsetBrokerService(BrokerService brokerService)-
Methods inherited from class org.apache.activemq.transport.nio.NIOTransportFactory
createServerSocketFactory, createSocketFactory
-
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory
createTransport, createTransport, doBind, isUseInactivityMonitor
-
Methods inherited from class org.apache.activemq.transport.TransportFactory
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactory
-
-
-
-
Method Detail
-
getDefaultWireFormatType
protected String 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
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
-