Class MQTTNIOTransport

java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.TransportThreadSupport
org.apache.activemq.transport.tcp.TcpTransport
org.apache.activemq.transport.mqtt.MQTTNIOTransport
All Implemented Interfaces:
Runnable, org.apache.activemq.Service, Transport

public class MQTTNIOTransport extends org.apache.activemq.transport.tcp.TcpTransport
An implementation of the Transport interface for using MQTT over NIO
  • Constructor Details

  • Method Details

    • initializeStreams

      protected void initializeStreams() throws IOException
      Overrides:
      initializeStreams in class org.apache.activemq.transport.tcp.TcpTransport
      Throws:
      IOException
    • processBuffer

      protected void processBuffer(ByteBuffer buffer, int readSize) throws Exception
      Throws:
      Exception
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.apache.activemq.transport.tcp.TcpTransport
      Throws:
      Exception
    • doStop

      protected void doStop(ServiceStopper stopper) throws Exception
      Overrides:
      doStop in class org.apache.activemq.transport.tcp.TcpTransport
      Throws:
      Exception