Class JmsDefaultMessageIDPolicy

  • All Implemented Interfaces:
    JmsMessageIDPolicy

    public class JmsDefaultMessageIDPolicy
    extends Object
    implements JmsMessageIDPolicy
    The default MessageID policy used for all MessageProducers created from the client's connection factory.
    • Constructor Detail

      • JmsDefaultMessageIDPolicy

        public JmsDefaultMessageIDPolicy()
        Initialize default Message ID builder policy
      • JmsDefaultMessageIDPolicy

        public JmsDefaultMessageIDPolicy​(JmsDefaultMessageIDPolicy source)
        Creates a new JmsDefaultMessageIDPolicy instance copied from the source policy.
        Parameters:
        source - The policy instance to copy values from.
    • Method Detail

      • getMessageIDBuilder

        public JmsMessageIDBuilder getMessageIDBuilder​(JmsSession session,
                                                       JmsDestination destination)
        Description copied from interface: JmsMessageIDPolicy
        Returns the JmsMessageIDBuilder that should be used with the producer being created.
        Specified by:
        getMessageIDBuilder in interface JmsMessageIDPolicy
        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

        public void setMessageIDType​(String type)
        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

        public String getMessageIDType()
        Returns:
        the type name of the configured JmsMessageIDBuilder.
      • setMessageIDBuilder

        public void setMessageIDBuilder​(JmsMessageIDBuilder messageIDBuilder)