Class ReferenceIDSupplier
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.mirror.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 Summary
ConstructorsConstructorDescriptionReferenceIDSupplier(org.apache.activemq.artemis.core.server.ActiveMQServer server) -
Method Summary
Modifier and TypeMethodDescriptionlonggetID(org.apache.activemq.artemis.core.server.MessageReference element) getServerID(Message message) getServerID(org.apache.activemq.artemis.core.server.MessageReference element) org.apache.activemq.artemis.utils.collections.NodeStore<org.apache.activemq.artemis.core.server.MessageReference> This will return the NodeStore that will be used by the Queue.
-
Constructor Details
-
ReferenceIDSupplier
public ReferenceIDSupplier(org.apache.activemq.artemis.core.server.ActiveMQServer server)
-
-
Method Details
-
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:
newNodeStorein interfaceorg.apache.activemq.artemis.utils.collections.NodeStoreFactory<org.apache.activemq.artemis.core.server.MessageReference>
-
getDefaultNodeID
-
getServerID
-
getServerID
-
getID
public long getID(org.apache.activemq.artemis.core.server.MessageReference element) -
getID
-