Class DynamicRouterControlConfiguration
java.lang.Object
org.apache.camel.component.dynamicrouter.control.DynamicRouterControlConfiguration
Configuration for the 
DynamicRouterControlEndpoint.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionThe control action (subscribe or unsubscribe).The control action (subscribe or unsubscribe) that returns the default value of "subscribe" if null.The destination URI where the subscriber will receive matching exchanges.The expression language for creating thePredicate.ThePredicateused to evaluate exchanges for subscribers.org.apache.camel.PredicateReference to aPredicatein the registry.The subscription priority.The channel to subscribe to.The subscription ID.voidsetControlAction(String controlAction) The control action (subscribe or unsubscribe).voidsetDestinationUri(String destinationUri) The destination URI where the subscriber will receive matching exchanges.voidsetExpressionLanguage(String expressionLanguage) The expression language for creating thePredicate.voidsetPredicate(String predicate) ThePredicateused to evaluate exchanges for subscribers.voidsetPredicateBean(org.apache.camel.Predicate predicateBean) Reference to aPredicatein the registry.voidsetPriority(Integer priority) The subscription priority.voidsetSubscribeChannel(String subscribeChannel) The channel to subscribe to.voidsetSubscriptionId(String subscriptionId) The subscription ID. 
- 
Constructor Details
- 
DynamicRouterControlConfiguration
public DynamicRouterControlConfiguration() 
 - 
 - 
Method Details
- 
getControlAction
The control action (subscribe or unsubscribe).- Returns:
 - the control action
 
 - 
getControlActionOrDefault
The control action (subscribe or unsubscribe) that returns the default value of "subscribe" if null.- Returns:
 - the control action
 
 - 
setControlAction
The control action (subscribe or unsubscribe).- Parameters:
 controlAction- the control action -- subscribe or unsubscribe
 - 
getSubscribeChannel
The channel to subscribe to.- Returns:
 - subscribe channel name
 
 - 
setSubscribeChannel
The channel to subscribe to.- Parameters:
 subscribeChannel- subscribe channel name
 - 
getSubscriptionId
The subscription ID. If one is not supplied, one will be generated and returned.- Returns:
 - the subscription ID
 
 - 
setSubscriptionId
The subscription ID. If one is not supplied, one will be generated and returned.- Parameters:
 subscriptionId- the subscription ID
 - 
getDestinationUri
The destination URI where the subscriber will receive matching exchanges.- Returns:
 - the destination URI
 
 - 
setDestinationUri
The destination URI where the subscriber will receive matching exchanges.- Parameters:
 destinationUri- the destination URI
 - 
getPriority
The subscription priority. Lower numbers have higher priority.- Returns:
 - the subscription priority
 
 - 
setPriority
The subscription priority. Lower numbers have higher priority.- Parameters:
 priority- the subscription priority
 - 
getPredicate
ThePredicateused 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 viapredicateBean.- Returns:
 - the predicate for evaluating exchanges
 
 - 
setPredicate
ThePredicateused 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 viapredicateBean.- Parameters:
 predicate- the predicate for evaluating exchanges
 - 
getPredicateBean
public org.apache.camel.Predicate getPredicateBean()Reference to aPredicatein the registry.- Returns:
 - the predicate for evaluating exchanges
 
 - 
setPredicateBean
public void setPredicateBean(org.apache.camel.Predicate predicateBean) Reference to aPredicatein the registry.- Parameters:
 predicateBean- the predicate for evaluating exchanges
 - 
getExpressionLanguage
The expression language for creating thePredicate. The default is "simple".- Returns:
 - the expression language name
 
 - 
setExpressionLanguage
The expression language for creating thePredicate. The default is "simple".- Parameters:
 expressionLanguage- the expression language name
 
 -