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 java.lang.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
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Overrides:
        initialize in class ProtonInitializable
        Throws:
        java.lang.Exception
      • addAddress

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

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

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

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

        public boolean postAcknowledge​(java.lang.String queue,
                                       java.lang.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 java.lang.Exception
        Throws:
        java.lang.Exception
      • performAckOnPage

        public void performAckOnPage​(java.lang.String nodeID,
                                     long messageID,
                                     org.apache.activemq.artemis.core.server.Queue targetQueue,
                                     org.apache.activemq.artemis.core.io.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.api.core.Message message,
                                org.apache.activemq.artemis.core.server.RoutingContext context,
                                java.util.List<org.apache.activemq.artemis.core.server.MessageReference> refs)
        Specified by:
        sendMessage in interface org.apache.activemq.artemis.core.server.mirror.MirrorController