|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.config.ResequencerConfig
org.apache.camel.model.config.StreamResequencerConfig
public class StreamResequencerConfig
Defines the configuration parameters for the StreamResequencer
.
Constructor Summary | |
---|---|
StreamResequencerConfig()
Creates a new StreamResequencerConfig instance using default
values for capacity (1000) and timeout
(1000L). |
|
StreamResequencerConfig(int capacity,
long timeout)
Creates a new StreamResequencerConfig instance using the given
values for capacity and timeout . |
|
StreamResequencerConfig(int capacity,
long timeout,
Boolean rejectOld)
Creates a new StreamResequencerConfig instance using the given
values for capacity and timeout . |
|
StreamResequencerConfig(int capacity,
long timeout,
Boolean rejectOld,
ExpressionResultComparator comparator)
Creates a new StreamResequencerConfig instance using the given
values for capacity and timeout . |
|
StreamResequencerConfig(int capacity,
long timeout,
ExpressionResultComparator comparator)
Creates a new StreamResequencerConfig instance using the given
values for capacity and timeout . |
Method Summary | |
---|---|
int |
getCapacity()
|
ExpressionResultComparator |
getComparator()
|
String |
getComparatorRef()
|
static StreamResequencerConfig |
getDefault()
Returns a new StreamResequencerConfig instance using default
values for capacity (1000) and timeout
(1000L). |
Boolean |
getIgnoreInvalidExchanges()
|
Boolean |
getRejectOld()
|
long |
getTimeout()
|
void |
setCapacity(int capacity)
|
void |
setComparator(ExpressionResultComparator comparator)
|
void |
setComparatorRef(String comparatorRef)
|
void |
setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)
|
void |
setRejectOld(boolean value)
|
void |
setTimeout(long timeout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamResequencerConfig()
StreamResequencerConfig
instance using default
values for capacity
(1000) and timeout
(1000L). Elements of the sequence are compared using the
DefaultExchangeComparator
.
public StreamResequencerConfig(int capacity, long timeout)
StreamResequencerConfig
instance using the given
values for capacity
and timeout
. Elements
of the sequence are compared using the DefaultExchangeComparator
.
capacity
- capacity of the resequencer's inbound queue.timeout
- minimum time to wait for missing elements (messages).public StreamResequencerConfig(int capacity, long timeout, 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 DefaultExchangeComparator
.
capacity
- capacity of the resequencer's inbound queue.timeout
- minimum time to wait for missing elements (messages).rejectOld
- if true, throws an error when messages older than the last delivered message are processedpublic StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld, 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 error when messages older than the last delivered message are processedcomparator
- comparator for sequence comparisionMethod Detail |
---|
public static StreamResequencerConfig getDefault()
StreamResequencerConfig
instance using default
values for capacity
(1000) and timeout
(1000L). Elements of the sequence are compared using the
DefaultExchangeComparator
.
StreamResequencerConfig
.public int getCapacity()
public void setCapacity(int capacity)
public long getTimeout()
public void setTimeout(long timeout)
public Boolean getIgnoreInvalidExchanges()
public void setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)
public ExpressionResultComparator getComparator()
public void setComparator(ExpressionResultComparator comparator)
public String getComparatorRef()
public void setComparatorRef(String comparatorRef)
public void setRejectOld(boolean value)
public Boolean getRejectOld()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |