Class DynamicRouterConfiguration

java.lang.Object
org.apache.camel.component.dynamicrouter.routing.DynamicRouterConfiguration

@UriParams public class DynamicRouterConfiguration extends Object
This class encapsulates all configuration items for the Dynamic Router EIP component.
  • Constructor Details

    • DynamicRouterConfiguration

      public DynamicRouterConfiguration()
  • Method Details

    • getChannel

      public String 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

      public void setChannel(String channel)
      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

      public String 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

      public void setRecipientMode(String recipientMode)
      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

      public String getExecutorService()
      Gets the executor service.
      Returns:
      the executor service
    • setExecutorService

      public void setExecutorService(String executorService)
      Sets the executor service.
      Parameters:
      executorService - the executor service
    • getExecutorServiceBean

      public ExecutorService getExecutorServiceBean()
      Gets the executor service bean.
      Returns:
      the executor service bean
    • setExecutorServiceBean

      public void setExecutorServiceBean(ExecutorService executorServiceBean)
      Sets the executor service bean.
      Parameters:
      executorServiceBean - the executor service bean
    • getAggregationStrategy

      public String getAggregationStrategy()
      Gets the aggregation strategy.
      Returns:
      the aggregation strategy
    • setAggregationStrategy

      public void setAggregationStrategy(String aggregationStrategy)
      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

      public String getOnPrepare()
      Gets the on prepare processor reference.
      Returns:
      the on prepare processor reference
    • setOnPrepare

      public void setOnPrepare(String onPrepare)
      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
    • isShareUnitOfWork

      public boolean isShareUnitOfWork()
      Gets the share unit of work flag.
      Returns:
      the share unit of work flag
    • setShareUnitOfWork

      public void setShareUnitOfWork(boolean shareUnitOfWork)
      Sets the share unit of work flag.
      Parameters:
      shareUnitOfWork - the share unit of work flag
    • getAggregationStrategyMethodName

      public String getAggregationStrategyMethodName()
      Gets the aggregation strategy method name.
      Returns:
      the aggregation strategy method name
    • setAggregationStrategyMethodName

      public void setAggregationStrategyMethodName(String aggregationStrategyMethodName)
      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