Class StreamResequencerConfig

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

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

    • 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 default ExpressionResultComparator.
    • StreamResequencerConfig

      public StreamResequencerConfig(int capacity, long timeout)
      Creates a new StreamResequencerConfig instance using the given values for capacity and timeout. Elements of the sequence are compared using the default ExpressionResultComparator.
      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, org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
      Creates a new StreamResequencerConfig 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 comparison
    • StreamResequencerConfig

      public StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld)
      Creates a new StreamResequencerConfig instance using the given values for capacity and timeout. Elements of the sequence are compared using the default ExpressionResultComparator.
      Parameters:
      capacity - capacity of the resequencer's inbound queue.
      timeout - minimum time to wait for missing elements (messages).
      rejectOld - if true, throws an exception when messages older than the last delivered message are processed
    • StreamResequencerConfig

      public StreamResequencerConfig(int capacity, long timeout, Boolean rejectOld, org.apache.camel.processor.resequencer.ExpressionResultComparator comparator)
      Creates a new StreamResequencerConfig 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).
      rejectOld - if true, throws an exception when messages older than the last delivered message are processed
      comparator - comparator for sequence comparison
  • Method Details

    • 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 default ExpressionResultComparator.
      Returns:
      a default StreamResequencerConfig.
    • getCapacity

      public String getCapacity()
    • setCapacity

      public void setCapacity(String capacity)
      Sets the capacity of the resequencer inbound queue.
    • getTimeout

      public String getTimeout()
    • setTimeout

      public void setTimeout(String timeout)
      Sets minimum time (milliseconds) to wait for missing elements (messages).
    • getDeliveryAttemptInterval

      public String getDeliveryAttemptInterval()
    • setDeliveryAttemptInterval

      public void setDeliveryAttemptInterval(String deliveryAttemptInterval)
      Sets the interval in milliseconds the stream resequencer will at most wait while waiting for condition of being able to deliver.
    • getIgnoreInvalidExchanges

      public String getIgnoreInvalidExchanges()
    • setIgnoreInvalidExchanges

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

      public org.apache.camel.processor.resequencer.ExpressionResultComparator getComparatorBean()
    • setComparatorBean

      public void setComparatorBean(org.apache.camel.processor.resequencer.ExpressionResultComparator comparatorBean)
      To use a custom comparator
    • getComparator

      public String getComparator()
    • setComparator

      public void setComparator(String comparator)
      To use a custom comparator as a org.apache.camel.processor.resequencer.ExpressionResultComparator type.
    • setRejectOld

      public void setRejectOld(String value)
      If true, throws an exception when messages older than the last delivered message are processed
    • getRejectOld

      public String getRejectOld()