Class ProtonHandler

  • All Implemented Interfaces:
    org.apache.qpid.proton.engine.SaslListener

    public class ProtonHandler
    extends ProtonInitializable
    implements org.apache.qpid.proton.engine.SaslListener
    • Field Detail

      • dataReceived

        protected volatile boolean dataReceived
      • receivedFirstPacket

        protected boolean receivedFirstPacket
      • readyListener

        protected final org.apache.activemq.artemis.spi.core.remoting.ReadyListener readyListener
      • afterFlushSet

        protected java.util.Set<java.lang.Runnable> afterFlushSet
    • Constructor Detail

      • ProtonHandler

        public ProtonHandler​(io.netty.channel.EventLoop workerExecutor,
                             org.apache.activemq.artemis.utils.actors.ArtemisExecutor poolExecutor,
                             boolean isServer)
    • Method Detail

      • afterFlush

        public void afterFlush​(java.lang.Runnable runnable)
      • runAfterFlush

        public void runAfterFlush()
      • tick

        public java.lang.Long tick​(boolean firstTick)
      • scheduledFlush

        public void scheduledFlush()
        We cannot flush until the initial handshake was finished. If this happens before the handshake, the connection response will happen without SASL and the client will respond and fail with an invalid code.
      • capacity

        public int capacity()
      • isHandler

        public boolean isHandler()
      • requireHandler

        public void requireHandler()
      • getTransport

        public org.apache.qpid.proton.engine.Transport getTransport()
      • getConnection

        public org.apache.qpid.proton.engine.Connection getConnection()
      • createServerSASL

        public void createServerSASL​(java.lang.String[] mechanisms)
      • instantFlush

        public void instantFlush()
      • flushBytes

        public void flushBytes()
      • getSASLResult

        public SASLResult getSASLResult()
      • inputBuffer

        public void inputBuffer​(io.netty.buffer.ByteBuf buffer)
      • checkDataReceived

        public boolean checkDataReceived()
      • getCreationTime

        public long getCreationTime()
      • runOnPool

        public void runOnPool​(java.lang.Runnable runnable)
      • runNow

        public void runNow​(java.lang.Runnable runnable)
      • runLater

        public void runLater​(java.lang.Runnable runnable)
      • flush

        public void flush()
      • close

        public void close​(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition,
                          AMQPConnectionContext connectionContext)
      • onSaslInit

        public void onSaslInit​(org.apache.qpid.proton.engine.Sasl sasl,
                               org.apache.qpid.proton.engine.Transport transport)
        Specified by:
        onSaslInit in interface org.apache.qpid.proton.engine.SaslListener
      • onSaslResponse

        public void onSaslResponse​(org.apache.qpid.proton.engine.Sasl sasl,
                                   org.apache.qpid.proton.engine.Transport transport)
        Specified by:
        onSaslResponse in interface org.apache.qpid.proton.engine.SaslListener
      • onSaslMechanisms

        public void onSaslMechanisms​(org.apache.qpid.proton.engine.Sasl sasl,
                                     org.apache.qpid.proton.engine.Transport transport)
        Specified by:
        onSaslMechanisms in interface org.apache.qpid.proton.engine.SaslListener
      • onSaslChallenge

        public void onSaslChallenge​(org.apache.qpid.proton.engine.Sasl sasl,
                                    org.apache.qpid.proton.engine.Transport transport)
        Specified by:
        onSaslChallenge in interface org.apache.qpid.proton.engine.SaslListener
      • onSaslOutcome

        public void onSaslOutcome​(org.apache.qpid.proton.engine.Sasl sasl,
                                  org.apache.qpid.proton.engine.Transport transport)
        Specified by:
        onSaslOutcome in interface org.apache.qpid.proton.engine.SaslListener
      • handleError

        public void handleError​(java.lang.Exception e)
      • open

        public void open​(java.lang.String containerId,
                         java.util.Map<org.apache.qpid.proton.amqp.Symbol,​java.lang.Object> connectionProperties)
      • setChosenMechanism

        public void setChosenMechanism​(ServerSASL chosenMechanism)
      • setClientMechanism

        public void setClientMechanism​(ClientSASL saslClientMech)
      • createClientSASL

        public void createClientSASL()