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
.ThePredicate
used to evaluate exchanges for subscribers.org.apache.camel.Predicate
Reference to aPredicate
in the registry.The subscription priority.The channel to subscribe to.The subscription ID.void
setControlAction
(String controlAction) The control action (subscribe or unsubscribe).void
setDestinationUri
(String destinationUri) The destination URI where the subscriber will receive matching exchanges.void
setExpressionLanguage
(String expressionLanguage) The expression language for creating thePredicate
.void
setPredicate
(String predicate) ThePredicate
used to evaluate exchanges for subscribers.void
setPredicateBean
(org.apache.camel.Predicate predicateBean) Reference to aPredicate
in the registry.void
setPriority
(Integer priority) The subscription priority.void
setSubscribeChannel
(String subscribeChannel) The channel to subscribe to.void
setSubscriptionId
(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
ThePredicate
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 viapredicateBean
.- Returns:
- the predicate for evaluating exchanges
-
setPredicate
ThePredicate
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 viapredicateBean
.- Parameters:
predicate
- the predicate for evaluating exchanges
-
getPredicateBean
public org.apache.camel.Predicate getPredicateBean()Reference to aPredicate
in the registry.- Returns:
- the predicate for evaluating exchanges
-
setPredicateBean
public void setPredicateBean(org.apache.camel.Predicate predicateBean) Reference to aPredicate
in 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
-