Interface IterationCallback<T>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IterationCallback<T>
    A callback that can be passed to methods in extension stores (e.g. SubscriptionStore) to lazily iterate over a potentially large result set.
    Since:
    4.2.0, CE 2020.1
    • Method Detail

      • iterate

        void iterate​(@NotNull IterationContext context,
                     @NotNull
                     T value)
        This method is called for every result that is part of the iteration.
        Parameters:
        context - An IterationContext that allows for interaction with the overlaying iteration mechanism.
        value - The value for this single iteration.
        Since:
        4.2.0, CE 2020.1