Class AckManager

  • All Implemented Interfaces:
    org.apache.activemq.artemis.core.server.ActiveMQComponent

    public class AckManager
    extends Object
    implements org.apache.activemq.artemis.core.server.ActiveMQComponent
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int RETRY_DELAY  
    • Constructor Summary

      Constructors 
      Constructor Description
      AckManager​(org.apache.activemq.artemis.core.server.ActiveMQServer server)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean ack​(String nodeID, org.apache.activemq.artemis.core.server.Queue targetQueue, long messageID, org.apache.activemq.artemis.core.server.impl.AckReason reason, boolean allowRetry)  
      void addRetry​(String nodeID, org.apache.activemq.artemis.core.server.Queue queue, long messageID, org.apache.activemq.artemis.core.server.impl.AckReason reason)  
      void beginRetry()  
      void endRetry()  
      boolean initRetry()  
      boolean isStarted()  
      void reload​(RecordInfo recordInfo)  
      boolean retryAddress​(SimpleString address, io.netty.util.collection.LongObjectHashMap<JournalHashMap<org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.server.Queue>> queuesToRetry)  
      HashMap<SimpleString,​io.netty.util.collection.LongObjectHashMap<JournalHashMap<org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.server.Queue>>> sortRetries()  
      void start()  
      void stop()  
      • Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent

        asyncStop
    • Field Detail

      • RETRY_DELAY

        public static final int RETRY_DELAY
    • Constructor Detail

      • AckManager

        public AckManager​(org.apache.activemq.artemis.core.server.ActiveMQServer server)
    • Method Detail

      • reload

        public void reload​(RecordInfo recordInfo)
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
      • start

        public void start()
        Specified by:
        start in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
      • beginRetry

        public void beginRetry()
      • endRetry

        public void endRetry()
      • initRetry

        public boolean initRetry()
      • sortRetries

        public HashMap<SimpleString,​io.netty.util.collection.LongObjectHashMap<JournalHashMap<org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.server.Queue>>> sortRetries()
      • retryAddress

        public boolean retryAddress​(SimpleString address,
                                    io.netty.util.collection.LongObjectHashMap<JournalHashMap<org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.persistence.impl.journal.codec.AckRetry,​org.apache.activemq.artemis.core.server.Queue>> queuesToRetry)
      • addRetry

        public void addRetry​(String nodeID,
                             org.apache.activemq.artemis.core.server.Queue queue,
                             long messageID,
                             org.apache.activemq.artemis.core.server.impl.AckReason reason)
      • ack

        public boolean ack​(String nodeID,
                           org.apache.activemq.artemis.core.server.Queue targetQueue,
                           long messageID,
                           org.apache.activemq.artemis.core.server.impl.AckReason reason,
                           boolean allowRetry)