public class MQTTNIOTransportFactory extends NIOTransportFactory implements BrokerServiceAware
| Constructor and Description |
|---|
MQTTNIOTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
Transport |
compositeConfigure(Transport transport,
WireFormat format,
java.util.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 Transport |
createInactivityMonitor(Transport transport,
WireFormat format) |
protected TcpTransport |
createTcpTransport(WireFormat wf,
javax.net.SocketFactory socketFactory,
java.net.URI location,
java.net.URI localLocation)
Allows subclasses of TcpTransportFactory to provide a create custom
TcpTransport intances.
|
protected TcpTransportServer |
createTcpTransportServer(java.net.URI location,
javax.net.ServerSocketFactory serverSocketFactory)
Allows subclasses of TcpTransportFactory to create custom instances of
TcpTransportServer.
|
protected java.lang.String |
getDefaultWireFormatType() |
Transport |
serverConfigure(Transport transport,
WireFormat format,
java.util.HashMap options)
Fully configures and adds all need transport filters so that the
transport can be used by the ActiveMQ message broker.
|
void |
setBrokerService(BrokerService brokerService) |
createServerSocketFactory, createSocketFactorycreateTransport, doBind, isUseInactivityMonitorbind, bind, bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getOption, registerTransportFactorypublic MQTTNIOTransportFactory()
protected java.lang.String getDefaultWireFormatType()
getDefaultWireFormatType in class TransportFactoryprotected TcpTransportServer createTcpTransportServer(java.net.URI location, javax.net.ServerSocketFactory serverSocketFactory) throws java.io.IOException, java.net.URISyntaxException
TcpTransportFactorycreateTcpTransportServer in class NIOTransportFactoryjava.io.IOExceptionjava.net.URISyntaxExceptionprotected TcpTransport createTcpTransport(WireFormat wf, javax.net.SocketFactory socketFactory, java.net.URI location, java.net.URI localLocation) throws java.net.UnknownHostException, java.io.IOException
TcpTransportFactorycreateTcpTransport in class NIOTransportFactoryjava.net.UnknownHostExceptionjava.io.IOExceptionpublic Transport serverConfigure(Transport transport, WireFormat format, java.util.HashMap options) throws java.lang.Exception
TransportFactoryserverConfigure in class TransportFactoryjava.lang.Exceptionpublic Transport compositeConfigure(Transport transport, WireFormat format, java.util.Map options)
TransportFactorycompositeConfigure in class TcpTransportFactorypublic void setBrokerService(BrokerService brokerService)
setBrokerService in interface BrokerServiceAwareprotected Transport createInactivityMonitor(Transport transport, WireFormat format)
createInactivityMonitor in class TcpTransportFactoryCopyright © 2005-2012. All Rights Reserved.