Class DynamicRouterControlMessage
- java.lang.Object
-
- org.apache.camel.component.dynamicrouter.DynamicRouterControlMessage
-
- All Implemented Interfaces:
Serializable
public class DynamicRouterControlMessage extends Object implements 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicRouterControlMessage.ControlMessageTypeThe type of message received on the control channel.static classDynamicRouterControlMessage.SubscribeMessageBuilderA Builder class for creating a subscribe message.static classDynamicRouterControlMessage.UnsubscribeMessageBuilderA Builder class for creating an unsubscribe message.
-
Constructor Summary
Constructors Constructor Description DynamicRouterControlMessage(DynamicRouterControlMessage.ControlMessageType messageType, String id, String channel, int priority, String endpoint, org.apache.camel.Predicate predicate)Constructor that sets all properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChannel()Get the Dynamic Router channel.StringgetEndpoint()Get the endpointStringgetId()Get the subscription ID.DynamicRouterControlMessage.ControlMessageTypegetMessageType()Get the message type.org.apache.camel.PredicategetPredicate()Get the predicate.intgetPriority()Get the priority.
-
-
-
Constructor Detail
-
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-Predicateused to determine if the exchange should be sent to the endpoint URI
-
-
Method Detail
-
getMessageType
public DynamicRouterControlMessage.ControlMessageType getMessageType()
Get the message type.- Returns:
- the message type
-
getId
public String getId()
Get the subscription ID.- Returns:
- the subscription id
-
getChannel
public String 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:
- Camel Predicates documentation
-
getEndpoint
public String getEndpoint()
Get the endpoint- Returns:
- the endpoint
-
-