Class ReferenceIDSupplier

  • All Implemented Interfaces:
    org.apache.activemq.artemis.utils.collections.NodeStoreFactory<org.apache.activemq.artemis.core.server.MessageReference>

    public class ReferenceIDSupplier
    extends Object
    implements org.apache.activemq.artemis.utils.collections.NodeStoreFactory<org.apache.activemq.artemis.core.server.MessageReference>
    Since Artemis 2.30.0 this is supplying a new NodeStore per queue. It is also parsing MessageReference and Message for the proper ID for the messages.
    Since:
    2.30.0
    • Constructor Detail

      • ReferenceIDSupplier

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

      • newNodeStore

        public org.apache.activemq.artemis.utils.collections.NodeStore<org.apache.activemq.artemis.core.server.MessageReference> newNodeStore()
        This will return the NodeStore that will be used by the Queue.
        Specified by:
        newNodeStore in interface org.apache.activemq.artemis.utils.collections.NodeStoreFactory<org.apache.activemq.artemis.core.server.MessageReference>
      • getDefaultNodeID

        public String getDefaultNodeID()
      • getServerID

        public String getServerID​(org.apache.activemq.artemis.core.server.MessageReference element)
      • getID

        public long getID​(org.apache.activemq.artemis.core.server.MessageReference element)