public class MQTTTransportFactory extends TcpTransportFactory implements BrokerServiceAware
| Constructor and Description |
|---|
MQTTTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
Transport |
compositeConfigure(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 Transport |
createInactivityMonitor(Transport transport,
WireFormat format) |
protected TcpTransportServer |
createTcpTransportServer(URI location,
ServerSocketFactory serverSocketFactory)
Allows subclasses of TcpTransportFactory to create custom instances of
TcpTransportServer.
|
protected String |
getDefaultWireFormatType() |
Transport |
serverConfigure(Transport transport,
WireFormat format,
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, createSocketFactory, createTcpTransport, createTransport, createTransport, createTransport, doBind, isUseInactivityMonitorbind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactorypublic MQTTTransportFactory()
protected String getDefaultWireFormatType()
getDefaultWireFormatType in class TransportFactoryprotected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException
TcpTransportFactorycreateTcpTransportServer in class TcpTransportFactoryIOExceptionURISyntaxExceptionpublic Transport compositeConfigure(Transport transport, WireFormat format, Map options)
TransportFactorycompositeConfigure in class TcpTransportFactorypublic void setBrokerService(BrokerService brokerService)
setBrokerService in interface BrokerServiceAwarepublic Transport serverConfigure(Transport transport, WireFormat format, HashMap options) throws Exception
TransportFactoryserverConfigure in class TransportFactoryExceptionprotected Transport createInactivityMonitor(Transport transport, WireFormat format)
createInactivityMonitor in class TcpTransportFactoryCopyright © 2005–2016 The Apache Software Foundation. All rights reserved.