org.apache.camel.model.config
Class BatchResequencerConfig

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

public class BatchResequencerConfig
extends ResequencerConfig

Defines the configuration parameters for the batch-processing Resequencer. Usage example:


Constructor Summary
BatchResequencerConfig()
          Creates a new BatchResequencerConfig instance using default values for batchSize (100) and batchTimeout (1000L).
BatchResequencerConfig(int batchSize, long batchTimeout)
          Creates a new BatchResequencerConfig instance using the given values for batchSize and batchTimeout.
 
Method Summary
 Boolean getAllowDuplicates()
           
 int getBatchSize()
           
 long getBatchTimeout()
           
static BatchResequencerConfig getDefault()
          Returns a new BatchResequencerConfig instance using default values for batchSize (100) and batchTimeout (1000L).
 Boolean getIgnoreInvalidExchanges()
           
 Boolean getReverse()
           
 boolean isAllowDuplicates()
           
 boolean isReverse()
           
 void setAllowDuplicates(Boolean allowDuplicates)
           
 void setBatchSize(int batchSize)
           
 void setBatchTimeout(long batchTimeout)
           
 void setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)
           
 void setReverse(Boolean reverse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchResequencerConfig

public BatchResequencerConfig()
Creates a new BatchResequencerConfig instance using default values for batchSize (100) and batchTimeout (1000L).


BatchResequencerConfig

public BatchResequencerConfig(int batchSize,
                              long batchTimeout)
Creates a new BatchResequencerConfig instance using the given values for batchSize and batchTimeout.

Parameters:
batchSize - size of the batch to be re-ordered.
batchTimeout - timeout for collecting elements to be re-ordered.
Method Detail

getDefault

public static BatchResequencerConfig getDefault()
Returns a new BatchResequencerConfig instance using default values for batchSize (100) and batchTimeout (1000L).

Returns:
a default BatchResequencerConfig.

getBatchSize

public int getBatchSize()

setBatchSize

public void setBatchSize(int batchSize)

getBatchTimeout

public long getBatchTimeout()

setBatchTimeout

public void setBatchTimeout(long batchTimeout)

isAllowDuplicates

public boolean isAllowDuplicates()

getAllowDuplicates

public Boolean getAllowDuplicates()

setAllowDuplicates

public void setAllowDuplicates(Boolean allowDuplicates)

isReverse

public boolean isReverse()

getReverse

public Boolean getReverse()

setReverse

public void setReverse(Boolean reverse)

getIgnoreInvalidExchanges

public Boolean getIgnoreInvalidExchanges()

setIgnoreInvalidExchanges

public void setIgnoreInvalidExchanges(Boolean ignoreInvalidExchanges)


Apache CAMEL