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
ConstructorDescriptionCreates a newBatchResequencerConfig
instance using default values forbatchSize
(100) andbatchTimeout
(1000L).BatchResequencerConfig
(int batchSize, long batchTimeout) Creates a newBatchResequencerConfig
instance using the given values forbatchSize
andbatchTimeout
. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchResequencerConfig
Returns a newBatchResequencerConfig
instance using default values forbatchSize
(100) andbatchTimeout
(1000L).void
setAllowDuplicates
(String allowDuplicates) Whether to allow duplicates.void
setBatchSize
(String batchSize) Sets the size of the batch to be re-ordered.void
setBatchTimeout
(String batchTimeout) Sets the timeout for collecting elements to be re-ordered.void
setIgnoreInvalidExchanges
(String ignoreInvalidExchanges) Whether to ignore invalid exchangesvoid
setReverse
(String reverse) Whether to reverse the ordering.
-
Constructor Details
-
BatchResequencerConfig
public BatchResequencerConfig()Creates a newBatchResequencerConfig
instance using default values forbatchSize
(100) andbatchTimeout
(1000L). -
BatchResequencerConfig
public BatchResequencerConfig(int batchSize, long batchTimeout) Creates a newBatchResequencerConfig
instance using the given values forbatchSize
andbatchTimeout
.- Parameters:
batchSize
- size of the batch to be re-ordered.batchTimeout
- timeout for collecting elements to be re-ordered.
-
-
Method Details
-
getDefault
Returns a newBatchResequencerConfig
instance 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
-