Package org.apache.camel.model.config
Class BatchResequencerConfig
java.lang.Object
org.apache.camel.model.config.ResequencerConfig
org.apache.camel.model.config.BatchResequencerConfig
Configures batch-processing resequence eip.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L).BatchResequencerConfig(int batchSize, long batchTimeout) Creates a newBatchResequencerConfiginstance using the given values forbatchSizeandbatchTimeout. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchResequencerConfigReturns a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L).voidsetAllowDuplicates(String allowDuplicates) Whether to allow duplicates.voidsetBatchSize(String batchSize) Sets the size of the batch to be re-ordered.voidsetBatchTimeout(String batchTimeout) Sets the timeout for collecting elements to be re-ordered.voidsetIgnoreInvalidExchanges(String ignoreInvalidExchanges) Whether to ignore invalid exchangesvoidsetReverse(String reverse) Whether to reverse the ordering.
-
Constructor Details
-
BatchResequencerConfig
public BatchResequencerConfig()Creates a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L). -
BatchResequencerConfig
public BatchResequencerConfig(int batchSize, long batchTimeout) Creates a newBatchResequencerConfiginstance using the given values forbatchSizeandbatchTimeout.- Parameters:
batchSize- size of the batch to be re-ordered.batchTimeout- timeout for collecting elements to be re-ordered.
-
-
Method Details
-
getDefault
Returns a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L).- Returns:
- a default
BatchResequencerConfig.
-
getBatchSize
-
setBatchSize
Sets the size of the batch to be re-ordered. The default size is 100. -
getBatchTimeout
-
setBatchTimeout
Sets the timeout for collecting elements to be re-ordered. The default timeout is 1000 msec. -
getAllowDuplicates
-
setAllowDuplicates
Whether to allow duplicates. -
getReverse
-
setReverse
Whether to reverse the ordering. -
getIgnoreInvalidExchanges
-
setIgnoreInvalidExchanges
Whether to ignore invalid exchanges
-