Class BatchResequencerConfig

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

@Metadata(label="configuration,eip") public class BatchResequencerConfig extends ResequencerConfig
Configures batch-processing resequence eip.
  • Constructor Details

    • 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 Details

    • 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 String getBatchSize()
    • setBatchSize

      public void setBatchSize(String batchSize)
      Sets the size of the batch to be re-ordered. The default size is 100.
    • getBatchTimeout

      public String getBatchTimeout()
    • setBatchTimeout

      public void setBatchTimeout(String batchTimeout)
      Sets the timeout for collecting elements to be re-ordered. The default timeout is 1000 msec.
    • getAllowDuplicates

      public String getAllowDuplicates()
    • setAllowDuplicates

      public void setAllowDuplicates(String allowDuplicates)
      Whether to allow duplicates.
    • getReverse

      public String getReverse()
    • setReverse

      public void setReverse(String reverse)
      Whether to reverse the ordering.
    • getIgnoreInvalidExchanges

      public String getIgnoreInvalidExchanges()
    • setIgnoreInvalidExchanges

      public void setIgnoreInvalidExchanges(String ignoreInvalidExchanges)
      Whether to ignore invalid exchanges