Class DynamicRouterControlMessage
java.lang.Object
org.apache.camel.component.dynamicrouter.control.DynamicRouterControlMessage
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
DynamicRouterControlMessage
builder static inner class. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a new Dynamic Router control message without any values.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. -
Method Summary
Modifier and TypeMethodDescriptionThe destination URI where the subscriber will receive matching exchanges.The subscription predicate language.The predicate expression as a String that is interpreted in the context of theexpressionLanguage
parameter.The name of a predicate bean in the registry.int
The subscription priority.The channel to subscribe to.The subscription ID.
-
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 tosubscriptionId
- the subscription IDdestinationUri
- the destination URIpriority
- the subscription prioritypredicateBean
- the name of a predicate bean in the registrypredicate
- the predicate expressionexpressionLanguage
- the subscription predicate language
-
-
Method Details
-
getSubscribeChannel
The channel to subscribe to.- Returns:
- subscribe channel name
-
getSubscriptionId
The subscription ID. If one is not supplied, one will be generated and returned.- Returns:
- the subscription ID
-
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
The name of a predicate bean in the registry.- Returns:
- the subscription predicate
-
getPredicate
The predicate expression as a String that is interpreted in the context of theexpressionLanguage
parameter.- Returns:
- the predicate expression
-
getExpressionLanguage
The subscription predicate language. Used to interpret the String expression provided by thepredicate
parameter.- Returns:
- the subscription predicate language
-