Package org.apache.qpid.jms.policy
Interface JmsMessageIDPolicy
- All Known Implementing Classes:
JmsDefaultMessageIDPolicy
public interface JmsMessageIDPolicy
Interface for a policy that controls what kind of MessageID type is used for Messages
sent to a specific destination.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy this policy into a newly allocated instance.getMessageIDBuilder(JmsSession session, JmsDestination destination) Returns the JmsMessageIDBuilder that should be used with the producer being created.
-
Method Details
-
copy
JmsMessageIDPolicy copy()Copy this policy into a newly allocated instance.- Returns:
- a new JmsMessageIDPolicy that is a copy of this one.
-
getMessageIDBuilder
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.
-