org.apache.activemq.transport.mqtt
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, createSocketFactory
createTransport, doBind, isUseInactivityMonitor
bind, bind, bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getOption, registerTransportFactory
public MQTTNIOTransportFactory()
protected java.lang.String getDefaultWireFormatType()
getDefaultWireFormatType
in class TransportFactory
protected TcpTransportServer createTcpTransportServer(java.net.URI location, javax.net.ServerSocketFactory serverSocketFactory) throws java.io.IOException, java.net.URISyntaxException
TcpTransportFactory
createTcpTransportServer
in class NIOTransportFactory
java.io.IOException
java.net.URISyntaxException
protected TcpTransport createTcpTransport(WireFormat wf, javax.net.SocketFactory socketFactory, java.net.URI location, java.net.URI localLocation) throws java.net.UnknownHostException, java.io.IOException
TcpTransportFactory
createTcpTransport
in class NIOTransportFactory
java.net.UnknownHostException
java.io.IOException
public Transport serverConfigure(Transport transport, WireFormat format, java.util.HashMap options) throws java.lang.Exception
TransportFactory
serverConfigure
in class TransportFactory
java.lang.Exception
public Transport compositeConfigure(Transport transport, WireFormat format, java.util.Map options)
TransportFactory
compositeConfigure
in class TcpTransportFactory
public void setBrokerService(BrokerService brokerService)
setBrokerService
in interface BrokerServiceAware
protected Transport createInactivityMonitor(Transport transport, WireFormat format)
createInactivityMonitor
in class TcpTransportFactory
Copyright © 2005-2014. All Rights Reserved.