Class ActiveMQProtonRemotingConnection

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

    public class ActiveMQProtonRemotingConnection
    extends org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
    This is a Server's Connection representation used by ActiveMQ Artemis.
    • Field Summary

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

        closeListeners, creationTime, dataReceived, destroyed, executor, failureListeners, transportConnection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bufferReceived​(java.lang.Object connectionID, org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)  
      boolean checkDataReceived()  
      void destroy()  
      void disconnect​(boolean criticalError)  
      void disconnect​(java.lang.String scaleDownNodeID, boolean criticalError)
      Disconnect the connection, closing all channels
      void fail​(org.apache.activemq.artemis.api.core.ActiveMQException me, java.lang.String scaleDownTargetNodeID)  
      void flush()  
      AMQPConnectionContext getAmqpConnection()  
      java.lang.String getClientID()  
      ProtonProtocolManager getManager()  
      java.lang.String getProtocolName()
      Returns the name of the protocol for this Remoting Connection
      javax.security.auth.Subject getSubject()  
      boolean isSupportsFlowControl()  
      void open()  
      void scheduledFlush()  
      • Methods inherited from class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection

        addCloseListener, addFailureListener, asyncFail, callClosingListeners, callFailureListeners, createTransportBuffer, fail, getCreationTime, getFailureListeners, getID, getLocalAddress, getRemoteAddress, getTransportConnection, getTransportLocalAddress, isClient, isDestroyed, isSupportReconnect, isWritable, killMessage, removeCloseListener, removeCloseListeners, removeFailureListener, removeFailureListeners, setClientID, setCloseListeners, setFailureListeners, setSubject
      • 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

      • ActiveMQProtonRemotingConnection

        public ActiveMQProtonRemotingConnection​(ProtonProtocolManager manager,
                                                AMQPConnectionContext amqpConnection,
                                                org.apache.activemq.artemis.spi.core.remoting.Connection transportConnection,
                                                java.util.concurrent.Executor connectionExecutor)
    • Method Detail

      • scheduledFlush

        public void scheduledFlush()
        Specified by:
        scheduledFlush in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        scheduledFlush 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)
      • destroy

        public void destroy()
      • disconnect

        public void disconnect​(boolean criticalError)
      • disconnect

        public void disconnect​(java.lang.String scaleDownNodeID,
                               boolean criticalError)
        Disconnect the connection, closing all channels
      • checkDataReceived

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

        public void flush()
        Specified by:
        flush in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        flush in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • 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
      • getSubject

        public javax.security.auth.Subject getSubject()
        Specified by:
        getSubject in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        getSubject in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • 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:
      • getClientID

        public java.lang.String getClientID()
        Specified by:
        getClientID in interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
        Overrides:
        getClientID in class org.apache.activemq.artemis.spi.core.protocol.AbstractRemotingConnection
      • open

        public void open()