@Metadata(label="eip,routing,resequence") public class BatchResequencerConfig extends ResequencerConfig
Constructor and Description |
---|
BatchResequencerConfig()
Creates a new
BatchResequencerConfig instance using default
values for batchSize (100) and batchTimeout
(1000L). |
BatchResequencerConfig(int batchSize,
long batchTimeout)
Creates a new
BatchResequencerConfig instance using the given
values for batchSize and batchTimeout . |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowDuplicates() |
int |
getBatchSize() |
long |
getBatchTimeout() |
static BatchResequencerConfig |
getDefault()
Returns a new
BatchResequencerConfig instance using default
values for batchSize (100) and batchTimeout
(1000L). |
Boolean |
getIgnoreInvalidExchanges() |
Boolean |
getReverse() |
void |
setAllowDuplicates(Boolean allowDuplicates)
Whether to allow duplicates.
|
void |
setBatchSize(int batchSize)
Sets the size of the batch to be re-ordered.
|
void |
setBatchTimeout(long batchTimeout)
Sets the timeout for collecting elements to be re-ordered.
|
void |
setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)
Whether to ignore invalid exchanges
|
void |
setReverse(Boolean reverse)
Whether to reverse the ordering.
|
getOtherAttributes, setOtherAttributes
public BatchResequencerConfig()
BatchResequencerConfig
instance using default
values for batchSize
(100) and batchTimeout
(1000L).public BatchResequencerConfig(int batchSize, long batchTimeout)
BatchResequencerConfig
instance using the given
values for batchSize
and batchTimeout
.batchSize
- size of the batch to be re-ordered.batchTimeout
- timeout for collecting elements to be re-ordered.public static BatchResequencerConfig getDefault()
BatchResequencerConfig
instance using default
values for batchSize
(100) and batchTimeout
(1000L).BatchResequencerConfig
.public int getBatchSize()
public void setBatchSize(int batchSize)
public long getBatchTimeout()
public void setBatchTimeout(long batchTimeout)
public Boolean getAllowDuplicates()
public void setAllowDuplicates(Boolean allowDuplicates)
public Boolean getReverse()
public void setReverse(Boolean reverse)
public Boolean getIgnoreInvalidExchanges()
public void setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)
Apache Camel