org.apache.camel.model.config
Class StreamResequencerConfig

java.lang.Object
  extended by org.apache.camel.model.config.ResequencerConfig
      extended by org.apache.camel.model.config.StreamResequencerConfig

public class StreamResequencerConfig
extends ResequencerConfig

Defines the configuration parameters for the StreamResequencer.

Version:

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).
 Boolean getIgnoreInvalidExchanges()
           
 long getTimeout()
           
 void setCapacity(int capacity)
           
 void setComparator(ExpressionResultComparator comparator)
           
 void setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)
           
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamResequencerConfig

public StreamResequencerConfig()
Creates a new StreamResequencerConfig instance using default values for capacity (1000) and timeout (1000L). Elements of the sequence are compared using the DefaultExchangeComparator.


StreamResequencerConfig

public StreamResequencerConfig(int capacity,
                               long timeout)
Creates a new BatchResequencerConfig instance using the given values for capacity and timeout. Elements of the sequence are compared using the DefaultExchangeComparator.

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,
                               ExpressionResultComparator comparator)
Creates a new BatchResequencerConfig instance using the given values for capacity and timeout. Elements of the sequence are compared with the given ExpressionResultComparator.

Parameters:
capacity - capacity of the resequencer's inbound queue.
timeout - minimum time to wait for missing elements (messages).
comparator - comparator for sequence comparision
Method Detail

getDefault

public static StreamResequencerConfig getDefault()
Returns a new StreamResequencerConfig instance using default values for capacity (1000) and timeout (1000L). Elements of the sequence are compared using the DefaultExchangeComparator.

Returns:
a default StreamResequencerConfig.

getCapacity

public int getCapacity()

setCapacity

public void setCapacity(int capacity)

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)

getIgnoreInvalidExchanges

public Boolean getIgnoreInvalidExchanges()

setIgnoreInvalidExchanges

public void setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)

getComparator

public ExpressionResultComparator getComparator()

setComparator

public void setComparator(ExpressionResultComparator comparator)


Apache CAMEL