public class MQTTNIOTransportFactory extends NIOTransportFactory implements BrokerServiceAware
| Constructor and Description |
|---|
MQTTNIOTransportFactory() |
| 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 TcpTransport |
createTcpTransport(WireFormat wf,
SocketFactory socketFactory,
URI location,
URI localLocation)
Allows subclasses of TcpTransportFactory to provide a create custom
TcpTransport instances.
|
protected TcpTransportServer |
createTcpTransportServer(URI location,
ServerSocketFactory serverSocketFactory)
Allows subclasses of TcpTransportFactory to create custom instances of
TcpTransportServer.
|
TcpTransport |
createTransport(WireFormat wireFormat,
Socket socket,
TcpTransport.InitBuffer initBuffer) |
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, createSocketFactorycreateTransport, createTransport, doBind, isUseInactivityMonitorbind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactorypublic MQTTNIOTransportFactory()
protected String getDefaultWireFormatType()
getDefaultWireFormatType in class TransportFactoryprotected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException
TcpTransportFactorycreateTcpTransportServer in class NIOTransportFactoryIOExceptionURISyntaxExceptionprotected TcpTransport createTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException
TcpTransportFactorycreateTcpTransport in class NIOTransportFactoryUnknownHostExceptionIOExceptionpublic TcpTransport createTransport(WireFormat wireFormat, Socket socket, TcpTransport.InitBuffer initBuffer) throws IOException
createTransport in class NIOTransportFactoryIOExceptionpublic Transport serverConfigure(Transport transport, WireFormat format, HashMap options) throws Exception
TransportFactoryserverConfigure in class TransportFactoryExceptionpublic Transport compositeConfigure(Transport transport, WireFormat format, 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–2016 The Apache Software Foundation. All rights reserved.