Class DynamicRouterControlMessage

java.lang.Object
org.apache.camel.component.dynamicrouter.control.DynamicRouterControlMessage

public final class DynamicRouterControlMessage extends Object
A message to control the Dynamic Router. This class serves as an alternative to supplying these details through request params in the control channel Endpoint URI.
  • Constructor Details

    • DynamicRouterControlMessage

      public DynamicRouterControlMessage()
      Default constructor for a new Dynamic Router control message without any values.
    • DynamicRouterControlMessage

      public DynamicRouterControlMessage(String subscribeChannel, String subscriptionId, String destinationUri, int priority, String predicateBean, String predicate, String expressionLanguage)
      Constructor for a new Dynamic Router control message with the given values.
      Parameters:
      subscribeChannel - the channel to subscribe to
      subscriptionId - the subscription ID
      destinationUri - the destination URI
      priority - the subscription priority
      predicateBean - the name of a predicate bean in the registry
      predicate - the predicate expression
      expressionLanguage - the subscription predicate language
  • Method Details

    • getSubscribeChannel

      public String getSubscribeChannel()
      The channel to subscribe to.
      Returns:
      subscribe channel name
    • getSubscriptionId

      public String getSubscriptionId()
      The subscription ID. If one is not supplied, one will be generated and returned.
      Returns:
      the subscription ID
    • getDestinationUri

      public String getDestinationUri()
      The destination URI where the subscriber will receive matching exchanges.
      Returns:
      the destination URI
    • getPriority

      public int getPriority()
      The subscription priority.
      Returns:
      the subscription priority
    • getPredicateBean

      public String getPredicateBean()
      The name of a predicate bean in the registry.
      Returns:
      the subscription predicate
    • getPredicate

      public String getPredicate()
      The predicate expression as a String that is interpreted in the context of the expressionLanguage parameter.
      Returns:
      the predicate expression
    • getExpressionLanguage

      public String getExpressionLanguage()
      The subscription predicate language. Used to interpret the String expression provided by the predicate parameter.
      Returns:
      the subscription predicate language