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, isUseInactivityMonitor
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactory
public MQTTTransportFactory()
protected String getDefaultWireFormatType()
getDefaultWireFormatType
in class TransportFactory
protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException
TcpTransportFactory
createTcpTransportServer
in class TcpTransportFactory
IOException
URISyntaxException
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
TransportFactory
compositeConfigure
in class TcpTransportFactory
public void setBrokerService(BrokerService brokerService)
setBrokerService
in interface BrokerServiceAware
public Transport serverConfigure(Transport transport, WireFormat format, HashMap options) throws Exception
TransportFactory
serverConfigure
in class TransportFactory
Exception
protected Transport createInactivityMonitor(Transport transport, WireFormat format)
createInactivityMonitor
in class TcpTransportFactory
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.