Package org.apache.qpid.jms.policy
Class JmsDefaultMessageIDPolicy
java.lang.Object
org.apache.qpid.jms.policy.JmsDefaultMessageIDPolicy
- All Implemented Interfaces:
JmsMessageIDPolicy
The default MessageID policy used for all MessageProducers created from the
client's connection factory.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize default Message ID builder policyCreates a new JmsDefaultMessageIDPolicy instance copied from the source policy. -
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.voidsetMessageIDBuilder(JmsMessageIDBuilder messageIDBuilder) voidsetMessageIDType(String type) Sets the type of the Message IDs used to populate the outgoing Messages
-
Constructor Details
-
JmsDefaultMessageIDPolicy
public JmsDefaultMessageIDPolicy()Initialize default Message ID builder policy -
JmsDefaultMessageIDPolicy
Creates a new JmsDefaultMessageIDPolicy instance copied from the source policy.- Parameters:
source- The policy instance to copy values from.
-
-
Method Details
-
copy
Description copied from interface:JmsMessageIDPolicyCopy this policy into a newly allocated instance.- Specified by:
copyin interfaceJmsMessageIDPolicy- Returns:
- a new JmsMessageIDPolicy that is a copy of this one.
-
getMessageIDBuilder
Description copied from interface:JmsMessageIDPolicyReturns the JmsMessageIDBuilder that should be used with the producer being created.- Specified by:
getMessageIDBuilderin interfaceJmsMessageIDPolicy- 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.
-
setMessageIDType
Sets the type of the Message IDs used to populate the outgoing Messages- Parameters:
type- The name of the Message type to use when sending a message.
-
getMessageIDType
- Returns:
- the type name of the configured JmsMessageIDBuilder.
-
getMessageIDBuilder
-
setMessageIDBuilder
-