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
Constructors Constructor Description ReferenceIDSupplier(org.apache.activemq.artemis.core.server.ActiveMQServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultNodeID()longgetID(org.apache.activemq.artemis.core.server.MessageReference element)StringgetServerID(Message message)StringgetServerID(org.apache.activemq.artemis.core.server.MessageReference element)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.
-
-
-
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:
newNodeStorein interfaceorg.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)
-
-