Package org.apache.camel.model.config
Class BatchResequencerConfig
- java.lang.Object
-
- org.apache.camel.model.config.ResequencerConfig
-
- org.apache.camel.model.config.BatchResequencerConfig
-
@Metadata(label="configuration,eip") public class BatchResequencerConfig extends ResequencerConfig
Configures batch-processing resequence eip.
-
-
Constructor Summary
Constructors Constructor Description BatchResequencerConfig()Creates a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L).BatchResequencerConfig(int batchSize, long batchTimeout)Creates a newBatchResequencerConfiginstance using the given values forbatchSizeandbatchTimeout.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAllowDuplicates()StringgetBatchSize()StringgetBatchTimeout()static BatchResequencerConfiggetDefault()Returns a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L).StringgetIgnoreInvalidExchanges()StringgetReverse()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 Detail
-
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 Detail
-
getDefault
public static BatchResequencerConfig getDefault()
Returns a newBatchResequencerConfiginstance using default values forbatchSize(100) andbatchTimeout(1000L).- Returns:
- a default
BatchResequencerConfig.
-
getBatchSize
public String getBatchSize()
-
setBatchSize
public void setBatchSize(String batchSize)
Sets the size of the batch to be re-ordered. The default size is 100.
-
getBatchTimeout
public String getBatchTimeout()
-
setBatchTimeout
public void setBatchTimeout(String batchTimeout)
Sets the timeout for collecting elements to be re-ordered. The default timeout is 1000 msec.
-
getAllowDuplicates
public String getAllowDuplicates()
-
setAllowDuplicates
public void setAllowDuplicates(String allowDuplicates)
Whether to allow duplicates.
-
getReverse
public String getReverse()
-
setReverse
public void setReverse(String reverse)
Whether to reverse the ordering.
-
getIgnoreInvalidExchanges
public String getIgnoreInvalidExchanges()
-
setIgnoreInvalidExchanges
public void setIgnoreInvalidExchanges(String ignoreInvalidExchanges)
Whether to ignore invalid exchanges
-
-