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 class
DynamicRouterControlMessage.ControlMessageType
The type of message received on the control channel.static class
DynamicRouterControlMessage.SubscribeMessageBuilder
A Builder class for creating a subscribe message.static class
DynamicRouterControlMessage.UnsubscribeMessageBuilder
A 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 String
getChannel()
Get the Dynamic Router channel.String
getEndpoint()
Get the endpointString
getId()
Get the subscription ID.DynamicRouterControlMessage.ControlMessageType
getMessageType()
Get the message type.org.apache.camel.Predicate
getPredicate()
Get the predicate.int
getPriority()
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
-Predicate
used 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
-
-