Class AMQPMirrorControllerTarget

  • All Implemented Interfaces:
    org.apache.activemq.artemis.core.server.mirror.MirrorController, ProtonDeliveryHandler

    public class AMQPMirrorControllerTarget
    extends ProtonAbstractReceiver
    implements org.apache.activemq.artemis.core.server.mirror.MirrorController
    • Constructor Detail

    • Method Detail

      • setControllerInUse

        public static void setControllerInUse​(org.apache.activemq.artemis.core.server.mirror.MirrorController controller)
      • getControllerInUse

        public static org.apache.activemq.artemis.core.server.mirror.MirrorController getControllerInUse()
      • getRemoteMirrorId

        public String getRemoteMirrorId()
        Specified by:
        getRemoteMirrorId in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
      • actualDelivery

        protected void actualDelivery​(AMQPMessage message,
                                      org.apache.qpid.proton.engine.Delivery delivery,
                                      org.apache.qpid.proton.engine.Receiver receiver,
                                      org.apache.activemq.artemis.core.transaction.Transaction tx)
        Specified by:
        actualDelivery in class ProtonAbstractReceiver
      • preAcknowledge

        public void preAcknowledge​(org.apache.activemq.artemis.core.transaction.Transaction tx,
                                   org.apache.activemq.artemis.core.server.MessageReference ref,
                                   org.apache.activemq.artemis.core.server.impl.AckReason reason)
                            throws Exception
        Specified by:
        preAcknowledge in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        Exception
      • addAddress

        public void addAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)
                        throws Exception
        Specified by:
        addAddress in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        Exception
      • deleteAddress

        public void deleteAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)
                           throws Exception
        Specified by:
        deleteAddress in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        Exception
      • createQueue

        public void createQueue​(QueueConfiguration queueConfiguration)
                         throws Exception
        Specified by:
        createQueue in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        Exception
      • deleteQueue

        public void deleteQueue​(SimpleString addressName,
                                SimpleString queueName)
                         throws Exception
        Specified by:
        deleteQueue in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        Exception
      • postAcknowledge

        public boolean postAcknowledge​(String queue,
                                       String nodeID,
                                       long messageID,
                                       org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.ACKMessageOperation ackMessage,
                                       org.apache.activemq.artemis.core.server.impl.AckReason reason)
                                throws Exception
        Throws:
        Exception
      • performAckOnPage

        public void performAckOnPage​(String nodeID,
                                     long messageID,
                                     org.apache.activemq.artemis.core.server.Queue targetQueue,
                                     IOCallback ackMessageOperation)
      • postAcknowledge

        public void postAcknowledge​(org.apache.activemq.artemis.core.server.MessageReference ref,
                                    org.apache.activemq.artemis.core.server.impl.AckReason reason)
        Specified by:
        postAcknowledge in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
      • sendMessage

        public void sendMessage​(org.apache.activemq.artemis.core.transaction.Transaction tx,
                                Message message,
                                org.apache.activemq.artemis.core.server.RoutingContext context)
        Specified by:
        sendMessage in interface org.apache.activemq.artemis.core.server.mirror.MirrorController