Class DynamicRouterControlMessage

  • All Implemented Interfaces:
    Serializable

    public class DynamicRouterControlMessage
    extends Object
    implements Serializable
    The control channel message to provide the conditions under which a recipient should receive an exchange for processing. Provides Builder classes for fluent construction of subscribe and unsubscribe messages.
    See Also:
    Serialized Form
    • Constructor Detail

      • DynamicRouterControlMessage

        public DynamicRouterControlMessage​(DynamicRouterControlMessage.ControlMessageType messageType,
                                           String id,
                                           String channel,
                                           int priority,
                                           String endpoint,
                                           org.apache.camel.Predicate predicate)
        Constructor that sets all properties.
        Parameters:
        messageType - the type of this message
        id - the id for the subscription, and the only way to unsubscribe
        channel - the channel of the dynamic router
        priority - the priority of this rule, relative to other rules
        endpoint - the endpoint URI to send qualifying messages
        predicate - Predicate used to determine if the exchange should be sent to the endpoint URI
    • Method Detail

      • getId

        public String getId()
        Get the subscription ID.
        Returns:
        the subscription id
      • getChannel

        public String getChannel()
        Get the Dynamic Router channel.
        Returns:
        the Dynamic Router channel
      • getPriority

        public int getPriority()
        Get the priority.
        Returns:
        the priority
      • getEndpoint

        public String getEndpoint()
        Get the endpoint
        Returns:
        the endpoint