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 Details

    • 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.