Class DynamicRouterConfiguration
java.lang.Object
org.apache.camel.component.dynamicrouter.routing.DynamicRouterConfiguration
This class encapsulates all configuration items for the Dynamic Router EIP component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the aggregation strategy.org.apache.camel.AggregationStrategy
Gets the aggregation strategy bean.Gets the aggregation strategy method name.int
Gets the cache size.Channel for the Dynamic Router.Gets the executor service.Gets the executor service bean.Gets the on prepare processor reference.org.apache.camel.Processor
Gets the on prepare processor.Gets the behavior of the Dynamic Router when routing participants are selected to receive an incoming exchange.long
Gets the timeout.boolean
Gets whether the aggregation strategy method allows null.boolean
Gets whether invalid endpoints should be ignored.boolean
Gets whether parallel aggregation is enabled.boolean
Gets whether parallel processing is enabled.boolean
Gets the share unit of work flag.boolean
Gets whether the multicast should stop on exception.boolean
Gets whether the multicast should be streaming or not.boolean
Flag to ensure synchronous processing.boolean
Flag to log a warning if no predicates match for an exchange.void
setAggregationStrategy
(String aggregationStrategy) Sets the aggregation strategy.void
setAggregationStrategyBean
(org.apache.camel.AggregationStrategy aggregationStrategyBean) Sets the aggregation strategy bean.void
setAggregationStrategyMethodAllowNull
(boolean aggregationStrategyMethodAllowNull) Sets whether the aggregation strategy method allows null.void
setAggregationStrategyMethodName
(String aggregationStrategyMethodName) Sets the aggregation strategy method name.void
setCacheSize
(int cacheSize) Sets the cache size.void
setChannel
(String channel) Channel for the Dynamic Router.void
setExecutorService
(String executorService) Sets the executor service.void
setExecutorServiceBean
(ExecutorService executorServiceBean) Sets the executor service bean.void
setIgnoreInvalidEndpoints
(boolean ignoreInvalidEndpoints) Sets whether invalid endpoints should be ignored.void
setOnPrepare
(String onPrepare) Sets the on prepare processor reference.void
setOnPrepareProcessor
(org.apache.camel.Processor onPrepare) Sets the on prepare processor.void
setParallelAggregate
(boolean parallelAggregate) Sets whether parallel aggregation is enabled.void
setParallelProcessing
(boolean parallelProcessing) Sets whether parallel processing is enabled.void
setRecipientMode
(String recipientMode) Sets the behavior of the Dynamic Router when routing participants are selected to receive an incoming exchange.void
setShareUnitOfWork
(boolean shareUnitOfWork) Sets the share unit of work flag.void
setStopOnException
(boolean stopOnException) Sets whether the multicast should stop on exception.void
setStreaming
(boolean streaming) Sets whether the multicast should be streaming or not.void
setSynchronous
(boolean synchronous) Flag to ensure synchronous processing.void
setTimeout
(long timeout) Sets the timeout.void
setWarnDroppedMessage
(boolean warnDroppedMessage) Flag to log a warning if no predicates match for an exchange.
-
Constructor Details
-
DynamicRouterConfiguration
public DynamicRouterConfiguration()
-
-
Method Details
-
getChannel
Channel for the Dynamic Router. For example, if the Dynamic Router URI is "dynamic-router://test", then the channel is "test". Channels are a way of keeping routing participants, their rules, and exchanges logically separate from the participants, rules, and exchanges on other channels. This can be seen as analogous to VLANs in networking.- Returns:
- the channel
-
setChannel
Channel for the Dynamic Router. For example, if the Dynamic Router URI is "dynamic-router://test", then the channel is "test". Channels are a way of keeping routing participants, their rules, and exchanges logically separate from the participants, rules, and exchanges on other channels. This can be seen as analogous to VLANs in networking.- Parameters:
channel
- the channel
-
getRecipientMode
Gets the behavior of the Dynamic Router when routing participants are selected to receive an incoming exchange. If the mode is "firstMatch", then the exchange is routed only to the first participant that has a matching predicate. If the mode is "allMatch", then the exchange is routed to all participants that have a matching predicate.- Returns:
- the recipient mode
-
setRecipientMode
Sets the behavior of the Dynamic Router when routing participants are selected to receive an incoming exchange. If the mode is "firstMatch", then the exchange is routed only to the first participant that has a matching predicate. If the mode is "allMatch", then the exchange is routed to all participants that have a matching predicate.- Parameters:
recipientMode
- the recipient mode
-
isSynchronous
public boolean isSynchronous()Flag to ensure synchronous processing.- Returns:
- true if processing will be synchronous, false otherwise
-
setSynchronous
public void setSynchronous(boolean synchronous) Flag to ensure synchronous processing.- Parameters:
synchronous
- flag if processing will be synchronous
-
isWarnDroppedMessage
public boolean isWarnDroppedMessage()Flag to log a warning if no predicates match for an exchange.- Returns:
- true if logging a warning when no predicates match an exchange, false otherwise
-
setWarnDroppedMessage
public void setWarnDroppedMessage(boolean warnDroppedMessage) Flag to log a warning if no predicates match for an exchange.- Parameters:
warnDroppedMessage
- flag to log warnings when no predicates match
-
isStreaming
public boolean isStreaming()Gets whether the multicast should be streaming or not.- Returns:
- true if streaming, false otherwise
-
setStreaming
public void setStreaming(boolean streaming) Sets whether the multicast should be streaming or not.- Parameters:
streaming
- flag to set whether the multicast should be streaming or not
-
isIgnoreInvalidEndpoints
public boolean isIgnoreInvalidEndpoints()Gets whether invalid endpoints should be ignored.- Returns:
- true if invalid endpoints should be ignored, false otherwise
-
setIgnoreInvalidEndpoints
public void setIgnoreInvalidEndpoints(boolean ignoreInvalidEndpoints) Sets whether invalid endpoints should be ignored.- Parameters:
ignoreInvalidEndpoints
- flag to set whether invalid endpoints should be ignored
-
isParallelProcessing
public boolean isParallelProcessing()Gets whether parallel processing is enabled.- Returns:
- true if parallel processing is enabled, false otherwise
-
setParallelProcessing
public void setParallelProcessing(boolean parallelProcessing) Sets whether parallel processing is enabled.- Parameters:
parallelProcessing
- flag to set whether parallel processing is enabled
-
isParallelAggregate
public boolean isParallelAggregate()Gets whether parallel aggregation is enabled.- Returns:
- true if parallel aggregation is enabled, false otherwise
-
setParallelAggregate
public void setParallelAggregate(boolean parallelAggregate) Sets whether parallel aggregation is enabled.- Parameters:
parallelAggregate
- flag to set whether parallel aggregation is enabled
-
isStopOnException
public boolean isStopOnException()Gets whether the multicast should stop on exception.- Returns:
- true if the multicast should stop on exception, false otherwise
-
setStopOnException
public void setStopOnException(boolean stopOnException) Sets whether the multicast should stop on exception.- Parameters:
stopOnException
- flag to set whether the multicast should stop on exception
-
getExecutorService
Gets the executor service.- Returns:
- the executor service
-
setExecutorService
Sets the executor service.- Parameters:
executorService
- the executor service
-
getExecutorServiceBean
Gets the executor service bean.- Returns:
- the executor service bean
-
setExecutorServiceBean
Sets the executor service bean.- Parameters:
executorServiceBean
- the executor service bean
-
getAggregationStrategy
Gets the aggregation strategy.- Returns:
- the aggregation strategy
-
setAggregationStrategy
Sets the aggregation strategy.- Parameters:
aggregationStrategy
- the aggregation strategy
-
getTimeout
public long getTimeout()Gets the timeout.- Returns:
- the timeout
-
setTimeout
public void setTimeout(long timeout) Sets the timeout.- Parameters:
timeout
- the timeout
-
getCacheSize
public int getCacheSize()Gets the cache size.- Returns:
- the cache size
-
setCacheSize
public void setCacheSize(int cacheSize) Sets the cache size.- Parameters:
cacheSize
- the cache size
-
getOnPrepare
Gets the on prepare processor reference.- Returns:
- the on prepare processor reference
-
setOnPrepare
Sets the on prepare processor reference.- Parameters:
onPrepare
- the on prepare processor reference
-
getOnPrepareProcessor
public org.apache.camel.Processor getOnPrepareProcessor()Gets the on prepare processor.- Returns:
- the on prepare processor
-
setOnPrepareProcessor
public void setOnPrepareProcessor(org.apache.camel.Processor onPrepare) Sets the on prepare processor.- Parameters:
onPrepare
- the on prepare processor
-
getAggregationStrategyMethodName
Gets the aggregation strategy method name.- Returns:
- the aggregation strategy method name
-
setAggregationStrategyMethodName
Sets the aggregation strategy method name.- Parameters:
aggregationStrategyMethodName
- the aggregation strategy method name
-
isAggregationStrategyMethodAllowNull
public boolean isAggregationStrategyMethodAllowNull()Gets whether the aggregation strategy method allows null.- Returns:
- true if the aggregation strategy method allows null, false otherwise
-
setAggregationStrategyMethodAllowNull
public void setAggregationStrategyMethodAllowNull(boolean aggregationStrategyMethodAllowNull) Sets whether the aggregation strategy method allows null.- Parameters:
aggregationStrategyMethodAllowNull
- flag to set whether the aggregation strategy method allows null
-
getAggregationStrategyBean
public org.apache.camel.AggregationStrategy getAggregationStrategyBean()Gets the aggregation strategy bean.- Returns:
- the aggregation strategy bean
-
setAggregationStrategyBean
public void setAggregationStrategyBean(org.apache.camel.AggregationStrategy aggregationStrategyBean) Sets the aggregation strategy bean.- Parameters:
aggregationStrategyBean
- the aggregation strategy bean
-