Package org.apache.camel.model.config
Class StreamResequencerConfig
java.lang.Object
org.apache.camel.model.config.ResequencerConfig
org.apache.camel.model.config.StreamResequencerConfig
Configures stream-processing resequence eip.
-
Constructor Summary
ConstructorDescriptionCreates a newStreamResequencerConfig
instance using default values forcapacity
(1000) andtimeout
(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) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.processor.resequencer.ExpressionResultComparator
static StreamResequencerConfig
Returns a newStreamResequencerConfig
instance using default values forcapacity
(1000) andtimeout
(1000L).void
setCapacity
(String capacity) Sets the capacity of the resequencer inbound queue.void
setComparator
(String comparator) To use a custom comparator as a org.apache.camel.processor.resequencer.ExpressionResultComparator type.void
setComparatorBean
(org.apache.camel.processor.resequencer.ExpressionResultComparator comparatorBean) To use a custom comparatorvoid
setDeliveryAttemptInterval
(String deliveryAttemptInterval) Sets the interval in milliseconds the stream resequencer will at most wait while waiting for condition of being able to deliver.void
setIgnoreInvalidExchanges
(String ignoreInvalidExchanges) Whether to ignore invalid exchangesvoid
setRejectOld
(String value) If true, throws an exception when messages older than the last delivered message are processedvoid
setTimeout
(String timeout) Sets minimum time (milliseconds) to wait for missing elements (messages).
-
Constructor Details
-
StreamResequencerConfig
public StreamResequencerConfig()Creates a newStreamResequencerConfig
instance using default values forcapacity
(1000) andtimeout
(1000L). Elements of the sequence are compared using the defaultExpressionResultComparator
. -
StreamResequencerConfig
public StreamResequencerConfig(int capacity, long timeout) Creates a newStreamResequencerConfig
instance using the given values forcapacity
andtimeout
. Elements of the sequence are compared using the defaultExpressionResultComparator
.- Parameters:
capacity
- capacity of the resequencer's inbound queue.timeout
- minimum time to wait for missing elements (messages).
-
StreamResequencerConfig
public StreamResequencerConfig(int capacity, long timeout, org.apache.camel.processor.resequencer.ExpressionResultComparator comparator) Creates a newStreamResequencerConfig
instance using the given values forcapacity
andtimeout
. Elements of the sequence are compared with the givenExpressionResultComparator
.- Parameters:
capacity
- capacity of the resequencer's inbound queue.timeout
- minimum time to wait for missing elements (messages).comparator
- comparator for sequence comparison
-
StreamResequencerConfig
Creates a newStreamResequencerConfig
instance using the given values forcapacity
andtimeout
. Elements of the sequence are compared using the defaultExpressionResultComparator
.- Parameters:
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 processed
-
StreamResequencerConfig
public StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld, org.apache.camel.processor.resequencer.ExpressionResultComparator comparator) Creates a newStreamResequencerConfig
instance using the given values forcapacity
andtimeout
. Elements of the sequence are compared with the givenExpressionResultComparator
.- Parameters:
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 comparison
-
-
Method Details
-
getDefault
Returns a newStreamResequencerConfig
instance using default values forcapacity
(1000) andtimeout
(1000L). Elements of the sequence are compared using the defaultExpressionResultComparator
.- Returns:
- a default
StreamResequencerConfig
.
-
getCapacity
-
setCapacity
Sets the capacity of the resequencer inbound queue. -
getTimeout
-
setTimeout
Sets minimum time (milliseconds) to wait for missing elements (messages). -
getDeliveryAttemptInterval
-
setDeliveryAttemptInterval
Sets the interval in milliseconds the stream resequencer will at most wait while waiting for condition of being able to deliver. -
getIgnoreInvalidExchanges
-
setIgnoreInvalidExchanges
Whether to ignore invalid exchanges -
getComparatorBean
public org.apache.camel.processor.resequencer.ExpressionResultComparator getComparatorBean() -
setComparatorBean
public void setComparatorBean(org.apache.camel.processor.resequencer.ExpressionResultComparator comparatorBean) To use a custom comparator -
getComparator
-
setComparator
To use a custom comparator as a org.apache.camel.processor.resequencer.ExpressionResultComparator type. -
setRejectOld
If true, throws an exception when messages older than the last delivered message are processed -
getRejectOld
-