|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.config.StreamResequencerConfig
public class StreamResequencerConfig
Defines the configuration parameters for the StreamResequencer.
Usage example:
from("direct:start").resequencer(header("seqnum")).stream(
StreamResequencerConfig.getDefault()).to("mock:result")
is equivalent to
from("direct:start").resequencer(header("seqnum")).stream().to("mock:result")
Custom values for capacity and timeout can be
set like in this example:
from("direct:start").resequencer(header("seqnum")).stream(
new StreamResequencerConfig(300, 400L)).to("mock:result")
| 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 BatchResequencerConfig instance using the given
values for capacity and timeout. |
|
StreamResequencerConfig(int capacity,
long timeout,
ExpressionResultComparator comparator)
Creates a new BatchResequencerConfig instance using the given
values for capacity and timeout. |
|
| Method Summary | |
|---|---|
int |
getCapacity()
|
ExpressionResultComparator |
getComparator()
|
static StreamResequencerConfig |
getDefault()
Returns a new StreamResequencerConfig instance using default
values for capacity (1000) and timeout
(1000L). |
long |
getTimeout()
|
void |
setCapacity(int capacity)
|
void |
setComparator(ExpressionResultComparator comparator)
|
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)
BatchResequencerConfig 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)
BatchResequencerConfig 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 comparision| Method 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 ExpressionResultComparator getComparator()
public void setComparator(ExpressionResultComparator comparator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||