Class DynamicRouterControlConfiguration

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

@UriParams public class DynamicRouterControlConfiguration extends Object
Configuration for the DynamicRouterControlEndpoint.
  • Constructor Details

    • DynamicRouterControlConfiguration

      public DynamicRouterControlConfiguration()
  • Method Details

    • getControlAction

      public String getControlAction()
      The control action (subscribe or unsubscribe).
      Returns:
      the control action
    • getControlActionOrDefault

      public String getControlActionOrDefault()
      The control action (subscribe or unsubscribe) that returns the default value of "subscribe" if null.
      Returns:
      the control action
    • setControlAction

      public void setControlAction(String controlAction)
      The control action (subscribe or unsubscribe).
      Parameters:
      controlAction - the control action -- subscribe or unsubscribe
    • getSubscribeChannel

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

      public void setSubscribeChannel(String subscribeChannel)
      The channel to subscribe to.
      Parameters:
      subscribeChannel - 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
    • setSubscriptionId

      public void setSubscriptionId(String subscriptionId)
      The subscription ID. If one is not supplied, one will be generated and returned.
      Parameters:
      subscriptionId - the subscription ID
    • getDestinationUri

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

      public void setDestinationUri(String destinationUri)
      The destination URI where the subscriber will receive matching exchanges.
      Parameters:
      destinationUri - the destination URI
    • getPriority

      public Integer getPriority()
      The subscription priority. Lower numbers have higher priority.
      Returns:
      the subscription priority
    • setPriority

      public void setPriority(Integer priority)
      The subscription priority. Lower numbers have higher priority.
      Parameters:
      priority - the subscription priority
    • getPredicate

      public String getPredicate()
      The Predicate used to evaluate exchanges for subscribers. Only predicates that can be expressed as a string (e.g., using the Simple language) can be specified via URI param. Other types must be sent as the message body, or as a reference to a bean in the registry via predicateBean.
      Returns:
      the predicate for evaluating exchanges
    • setPredicate

      public void setPredicate(String predicate)
      The Predicate used to evaluate exchanges for subscribers. Only predicates that can be expressed as a string (e.g., using the Simple language) can be specified via URI param. Other types must be sent as the message body, or as a reference to a bean in the registry via predicateBean.
      Parameters:
      predicate - the predicate for evaluating exchanges
    • getPredicateBean

      public org.apache.camel.Predicate getPredicateBean()
      Reference to a Predicate in the registry.
      Returns:
      the predicate for evaluating exchanges
    • setPredicateBean

      public void setPredicateBean(org.apache.camel.Predicate predicateBean)
      Reference to a Predicate in the registry.
      Parameters:
      predicateBean - the predicate for evaluating exchanges
    • getExpressionLanguage

      public String getExpressionLanguage()
      The expression language for creating the Predicate. The default is "simple".
      Returns:
      the expression language name
    • setExpressionLanguage

      public void setExpressionLanguage(String expressionLanguage)
      The expression language for creating the Predicate. The default is "simple".
      Parameters:
      expressionLanguage - the expression language name