Interface RingBuffer.ForEachEvaluator<S>

Type Parameters:
S - the type to evaluate
Enclosing class:
RingBuffer<T>

public static interface RingBuffer.ForEachEvaluator<S>
Defines an interface that can be used to iterate over all of the elements in the RingBuffer via the RingBuffer.forEach(org.apache.nifi.util.RingBuffer.ForEachEvaluator<T>) method
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    evaluate(S value)
    Evaluates the given element and returns true if the next element should be evaluated, false otherwise
  • Method Details

    • evaluate

      boolean evaluate(S value)
      Evaluates the given element and returns true if the next element should be evaluated, false otherwise
      Parameters:
      value - the value to evaluate
      Returns:
      true if should continue evaluating; false otherwise