@Metadata(label="eip,routing,resequence") public class StreamResequencerConfig extends ResequencerConfig
| Constructor and Description |
|---|
StreamResequencerConfig()
Creates a new
StreamResequencerConfig instance using default
values for capacity (1000) and timeout (1000L). |
StreamResequencerConfig(int capacity,
long timeout)
|
StreamResequencerConfig(int capacity,
long timeout,
Boolean rejectOld)
|
StreamResequencerConfig(int capacity,
long timeout,
Boolean rejectOld,
org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
|
StreamResequencerConfig(int capacity,
long timeout,
org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCapacity() |
org.apache.camel.processor.resequencer.ExpressionResultComparator |
getComparator() |
String |
getComparatorRef() |
static StreamResequencerConfig |
getDefault()
Returns a new
StreamResequencerConfig instance using default
values for capacity (1000) and timeout (1000L). |
String |
getDeliveryAttemptInterval() |
String |
getIgnoreInvalidExchanges() |
String |
getRejectOld() |
String |
getTimeout() |
void |
setCapacity(String capacity)
Sets the capacity of the resequencer's inbound queue.
|
void |
setComparator(org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
To use a custom comparator
|
void |
setComparatorRef(String comparatorRef)
To use a custom comparator
|
void |
setDeliveryAttemptInterval(String deliveryAttemptInterval)
Sets the interval in milli seconds the stream resequencer will at most
wait while waiting for condition of being able to deliver.
|
void |
setIgnoreInvalidExchanges(String ignoreInvalidExchanges)
Whether to ignore invalid exchanges
|
void |
setRejectOld(String value)
If true, throws an exception when messages older than the last delivered
message are processed
|
void |
setTimeout(String timeout)
Sets minimum time to wait for missing elements (messages).
|
public StreamResequencerConfig()
StreamResequencerConfig instance using default
values for capacity (1000) and timeout (1000L).
Elements of the sequence are compared using the default
ExpressionResultComparator.public StreamResequencerConfig(int capacity, long timeout)
StreamResequencerConfig instance using the given
values for capacity and timeout. Elements of
the sequence are compared using the default
ExpressionResultComparator.capacity - capacity of the resequencer's inbound queue.timeout - minimum time to wait for missing elements (messages).public StreamResequencerConfig(int capacity, long timeout, org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
StreamResequencerConfig instance using the given
values for capacity and timeout. Elements of
the sequence are compared with the given
ExpressionResultComparator.capacity - capacity of the resequencer's inbound queue.timeout - minimum time to wait for missing elements (messages).comparator - comparator for sequence comparisionpublic StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld)
StreamResequencerConfig instance using the given
values for capacity and timeout. Elements of
the sequence are compared using the default
ExpressionResultComparator.capacity - capacity of the resequencer's inbound queue.timeout - minimum time to wait for missing elements (messages).rejectOld - if true, throws an exception when messages older than
the last delivered message are processedpublic StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld, org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
StreamResequencerConfig instance using the given
values for capacity and timeout. Elements of
the sequence are compared with the given
ExpressionResultComparator.capacity - capacity of the resequencer's inbound queue.timeout - minimum time to wait for missing elements (messages).rejectOld - if true, throws an exception when messages older than
the last delivered message are processedcomparator - comparator for sequence comparisionpublic static StreamResequencerConfig getDefault()
StreamResequencerConfig instance using default
values for capacity (1000) and timeout (1000L).
Elements of the sequence are compared using the default
ExpressionResultComparator.StreamResequencerConfig.public String getCapacity()
public void setCapacity(String capacity)
public String getTimeout()
public void setTimeout(String timeout)
public String getDeliveryAttemptInterval()
public void setDeliveryAttemptInterval(String deliveryAttemptInterval)
public String getIgnoreInvalidExchanges()
public void setIgnoreInvalidExchanges(String ignoreInvalidExchanges)
public org.apache.camel.processor.resequencer.ExpressionResultComparator getComparator()
public void setComparator(org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
public String getComparatorRef()
public void setComparatorRef(String comparatorRef)
public void setRejectOld(String value)
public String getRejectOld()
Apache Camel