Class MQTTConnection

  • All Implemented Interfaces:
    org.apache.activemq.artemis.spi.core.protocol.RemotingConnection, org.apache.activemq.artemis.spi.core.remoting.BufferHandler

    public class MQTTConnection
    extends org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
    • Field Summary

      • Fields inherited from class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection

        closeListeners, creationTime, dataReceived, executor, failureListeners, transportConnection
    • Constructor Summary

      Constructors 
      Constructor Description
      MQTTConnection​(org.apache.activemq.artemis.spi.core.remoting.Connection transportConnection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.Future asyncFail​(org.apache.activemq.artemis.api.core.ActiveMQException me)  
      void bufferReceived​(java.lang.Object connectionID, org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)  
      protected void dataReceived()  
      void destroy()  
      void disconnect​(boolean criticalError)  
      void disconnect​(java.lang.String scaleDownNodeID, boolean criticalError)  
      void fail​(org.apache.activemq.artemis.api.core.ActiveMQException me)  
      void fail​(org.apache.activemq.artemis.api.core.ActiveMQException me, java.lang.String scaleDownTargetNodeID)  
      void flush()  
      boolean getConnected()  
      java.lang.String getProtocolName()
      Returns the name of the protocol for this Remoting Connection
      int getReceiveMaximum()  
      java.lang.String getTransportLocalAddress()  
      boolean isClient()  
      boolean isClientIdAssignedByBroker()  
      boolean isDestroyed()  
      boolean isSupportsFlowControl()  
      void killMessage​(org.apache.activemq.artemis.api.core.SimpleString nodeID)  
      void setClientIdAssignedByBroker​(boolean clientIdAssignedByBroker)  
      void setConnected​(boolean connected)  
      void setProtocolVersion​(java.lang.String protocolVersion)  
      void setReceiveMaximum​(int maxReceive)  
      • Methods inherited from class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection

        addCloseListener, addFailureListener, callClosingListeners, callFailureListeners, checkDataReceived, createTransportBuffer, getAuditSubject, getClientID, getCreationTime, getFailureListeners, getID, getLocalAddress, getRemoteAddress, getSubject, getTransportConnection, isSupportReconnect, isWritable, removeCloseListener, removeCloseListeners, removeFailureListener, removeFailureListeners, scheduledFlush, setAuditSubject, setClientID, setCloseListeners, setFailureListeners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.activemq.artemis.spi.core.remoting.BufferHandler

        endOfBatch
      • Methods inherited from interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection

        disconnect, isSameTarget
    • Constructor Detail

      • MQTTConnection

        public MQTTConnection​(org.apache.activemq.artemis.spi.core.remoting.Connection transportConnection)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • fail

        public void fail​(org.apache.activemq.artemis.api.core.ActiveMQException me)
        Specified by:
        fail in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        fail in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • fail

        public void fail​(org.apache.activemq.artemis.api.core.ActiveMQException me,
                         java.lang.String scaleDownTargetNodeID)
      • asyncFail

        public java.util.concurrent.Future asyncFail​(org.apache.activemq.artemis.api.core.ActiveMQException me)
        Specified by:
        asyncFail in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        asyncFail in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • destroy

        public void destroy()
      • isClient

        public boolean isClient()
      • isDestroyed

        public boolean isDestroyed()
      • disconnect

        public void disconnect​(boolean criticalError)
      • disconnect

        public void disconnect​(java.lang.String scaleDownNodeID,
                               boolean criticalError)
      • dataReceived

        protected void dataReceived()
      • flush

        public void flush()
      • bufferReceived

        public void bufferReceived​(java.lang.Object connectionID,
                                   org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
        Specified by:
        bufferReceived in interface org.apache.activemq.artemis.spi.core.remoting.BufferHandler
        Overrides:
        bufferReceived in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • setConnected

        public void setConnected​(boolean connected)
      • getConnected

        public boolean getConnected()
      • killMessage

        public void killMessage​(org.apache.activemq.artemis.api.core.SimpleString nodeID)
      • isSupportsFlowControl

        public boolean isSupportsFlowControl()
        Specified by:
        isSupportsFlowControl in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        isSupportsFlowControl in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • getProtocolName

        public java.lang.String getProtocolName()
        Returns the name of the protocol for this Remoting Connection
        Returns:
      • getTransportLocalAddress

        public java.lang.String getTransportLocalAddress()
      • getReceiveMaximum

        public int getReceiveMaximum()
      • setReceiveMaximum

        public void setReceiveMaximum​(int maxReceive)
      • setProtocolVersion

        public void setProtocolVersion​(java.lang.String protocolVersion)
      • setClientIdAssignedByBroker

        public void setClientIdAssignedByBroker​(boolean clientIdAssignedByBroker)
      • isClientIdAssignedByBroker

        public boolean isClientIdAssignedByBroker()