Package org.apache.qpid.jms.policy
Interface JmsMessageIDPolicy
-
- All Known Implementing Classes:
JmsDefaultMessageIDPolicy
public interface JmsMessageIDPolicyInterface for a policy that controls what kind of MessageID type is used for Messages sent to a specific destination.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmsMessageIDPolicycopy()Copy this policy into a newly allocated instance.JmsMessageIDBuildergetMessageIDBuilder(JmsSession session, JmsDestination destination)Returns the JmsMessageIDBuilder that should be used with the producer being created.
-
-
-
Method Detail
-
copy
JmsMessageIDPolicy copy()
Copy this policy into a newly allocated instance.- Returns:
- a new JmsMessageIDPolicy that is a copy of this one.
-
getMessageIDBuilder
JmsMessageIDBuilder getMessageIDBuilder(JmsSession session, JmsDestination destination)
Returns the JmsMessageIDBuilder that should be used with the producer being created.- Parameters:
session- the Session that own the MessageProducer being created.destination- the Destination that the consumer will be subscribed to.- Returns:
- the JmsMessageIDBuilder instance that is assigned to the new producer.
-
-