Class DynamicRouterControlMessage
java.lang.Object
org.apache.camel.component.dynamicrouter.DynamicRouterControlMessage
- All Implemented Interfaces:
Serializable
The control channel message to provide the conditions under which a recipient should receive an exchange for
processing. Provides Builder classes for fluent construction of subscribe and unsubscribe messages.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The type of message received on the control channel.static class
A Builder class for creating a subscribe message.static class
A Builder class for creating an unsubscribe message. -
Constructor Summary
ConstructorsConstructorDescriptionDynamicRouterControlMessage
(DynamicRouterControlMessage.ControlMessageType messageType, String id, String channel, int priority, String endpoint, org.apache.camel.Predicate predicate) Constructor that sets all properties. -
Method Summary
Modifier and TypeMethodDescriptionGet the Dynamic Router channel.Get the endpointgetId()
Get the subscription ID.Get the message type.org.apache.camel.Predicate
Get the predicate.int
Get the priority.
-
Constructor Details
-
DynamicRouterControlMessage
public DynamicRouterControlMessage(DynamicRouterControlMessage.ControlMessageType messageType, String id, String channel, int priority, String endpoint, org.apache.camel.Predicate predicate) Constructor that sets all properties.- Parameters:
messageType
- the type of this messageid
- the id for the subscription, and the only way to unsubscribechannel
- the channel of the dynamic routerpriority
- the priority of this rule, relative to other rulesendpoint
- the endpoint URI to send qualifying messagespredicate
-Predicate
used to determine if the exchange should be sent to the endpoint URI
-
-
Method Details
-
getMessageType
Get the message type.- Returns:
- the message type
-
getId
Get the subscription ID.- Returns:
- the subscription id
-
getChannel
Get the Dynamic Router channel.- Returns:
- the Dynamic Router channel
-
getPriority
public int getPriority()Get the priority.- Returns:
- the priority
-
getPredicate
public org.apache.camel.Predicate getPredicate()Get the predicate.- Returns:
- the predicate
- See Also:
-
getEndpoint
Get the endpoint- Returns:
- the endpoint
-