Package org.apache.camel.model.config
Class StreamResequencerConfig
- java.lang.Object
-
- org.apache.camel.model.config.ResequencerConfig
-
- org.apache.camel.model.config.StreamResequencerConfig
-
@Metadata(label="configuration,eip") public class StreamResequencerConfig extends ResequencerConfig
Configures stream-processing resequence eip.
-
-
Constructor Summary
Constructors Constructor Description StreamResequencerConfig()
Creates 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCapacity()
String
getComparator()
org.apache.camel.processor.resequencer.ExpressionResultComparator
getComparatorBean()
static StreamResequencerConfig
getDefault()
Returns a newStreamResequencerConfig
instance using default values forcapacity
(1000) andtimeout
(1000L).String
getDeliveryAttemptInterval()
String
getIgnoreInvalidExchanges()
String
getRejectOld()
String
getTimeout()
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 Detail
-
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
public StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld)
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 Detail
-
getDefault
public static StreamResequencerConfig 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
public String getCapacity()
-
setCapacity
public void setCapacity(String capacity)
Sets the capacity of the resequencer inbound queue.
-
getTimeout
public String getTimeout()
-
setTimeout
public void setTimeout(String timeout)
Sets minimum time (milliseconds) to wait for missing elements (messages).
-
getDeliveryAttemptInterval
public String getDeliveryAttemptInterval()
-
setDeliveryAttemptInterval
public void setDeliveryAttemptInterval(String deliveryAttemptInterval)
Sets the interval in milliseconds the stream resequencer will at most wait while waiting for condition of being able to deliver.
-
getIgnoreInvalidExchanges
public String getIgnoreInvalidExchanges()
-
setIgnoreInvalidExchanges
public void setIgnoreInvalidExchanges(String ignoreInvalidExchanges)
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
public String getComparator()
-
setComparator
public void setComparator(String comparator)
To use a custom comparator as a org.apache.camel.processor.resequencer.ExpressionResultComparator type.
-
setRejectOld
public void setRejectOld(String value)
If true, throws an exception when messages older than the last delivered message are processed
-
getRejectOld
public String getRejectOld()
-
-