Class AMQPConnectionCallback

  • All Implemented Interfaces:
    org.apache.activemq.artemis.core.remoting.CloseListener, org.apache.activemq.artemis.core.remoting.FailureListener

    public class AMQPConnectionCallback
    extends java.lang.Object
    implements org.apache.activemq.artemis.core.remoting.FailureListener, org.apache.activemq.artemis.core.remoting.CloseListener
    • Constructor Detail

      • AMQPConnectionCallback

        public AMQPConnectionCallback​(ProtonProtocolManager manager,
                                      org.apache.activemq.artemis.spi.core.remoting.Connection connection,
                                      java.util.concurrent.Executor sessionExecutor,
                                      org.apache.activemq.artemis.core.server.ActiveMQServer server)
    • Method Detail

      • getTransportConnection

        public org.apache.activemq.artemis.spi.core.remoting.Connection getTransportConnection()
      • getSaslMechanisms

        public java.lang.String[] getSaslMechanisms()
      • getServerSASL

        public ServerSASL getServerSASL​(java.lang.String mechanism)
      • isSupportsAnonymous

        public boolean isSupportsAnonymous()
      • close

        public void close()
      • onTransport

        public void onTransport​(io.netty.buffer.ByteBuf byteBuf,
                                AMQPConnectionContext amqpConnection)
      • isWritable

        public boolean isWritable​(org.apache.activemq.artemis.spi.core.remoting.ReadyListener readyListener)
      • sendSASLSupported

        public void sendSASLSupported()
      • validateConnection

        public boolean validateConnection​(org.apache.qpid.proton.engine.Connection connection,
                                          SASLResult saslResult)
      • connectionClosed

        public void connectionClosed()
        Specified by:
        connectionClosed in interface org.apache.activemq.artemis.core.remoting.CloseListener
      • connectionFailed

        public void connectionFailed​(org.apache.activemq.artemis.api.core.ActiveMQException exception,
                                     boolean failedOver)
        Specified by:
        connectionFailed in interface org.apache.activemq.artemis.core.remoting.FailureListener
      • connectionFailed

        public void connectionFailed​(org.apache.activemq.artemis.api.core.ActiveMQException exception,
                                     boolean failedOver,
                                     java.lang.String scaleDownTargetNodeID)
        Specified by:
        connectionFailed in interface org.apache.activemq.artemis.core.remoting.FailureListener
      • newTransaction

        public org.apache.qpid.proton.amqp.Binary newTransaction()
      • getTransaction

        public org.apache.activemq.artemis.core.transaction.Transaction getTransaction​(org.apache.qpid.proton.amqp.Binary txid,
                                                                                       boolean remove)
                                                                                throws ActiveMQAMQPException
        Throws:
        ActiveMQAMQPException
      • newXID

        protected org.apache.activemq.artemis.core.transaction.impl.XidImpl newXID()
      • newXID

        protected org.apache.activemq.artemis.core.transaction.impl.XidImpl newXID​(byte[] bytes)
      • getFailoverList

        public java.net.URI getFailoverList()