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 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAllowDuplicates()
String
getBatchSize()
String
getBatchTimeout()
static BatchResequencerConfig
getDefault()
Returns a newBatchResequencerConfig
instance using default values forbatchSize
(100) andbatchTimeout
(1000L).String
getIgnoreInvalidExchanges()
String
getReverse()
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 Detail
-
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 Detail
-
getDefault
public static BatchResequencerConfig getDefault()
Returns a newBatchResequencerConfig
instance 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
-
-