Interface Backlog.BatchConsumer<T>

Enclosing class:
Backlog<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 static interface Backlog.BatchConsumer<T>
A function that consumes a batch of items and returns a future that completes when processing is done.
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(List<T> batch)
    Consumes a batch and returns its asynchronous completion.
  • Method Details

    • accept

      CompletableFuture<Void> accept(List<T> batch) throws Exception
      Consumes a batch and returns its asynchronous completion. A thrown exception or exceptionally completed future signals batch failure.
      Throws:
      Exception