Interface CompletableFutureUtil.ProgressConsumer

Enclosing class:
CompletableFutureUtil
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 CompletableFutureUtil.ProgressConsumer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(double percent, int current, int max)
    Called when a progress timer has been reached, or when the task has completed totally.
  • Method Details

    • accept

      void accept(double percent, int current, int max)
      Called when a progress timer has been reached, or when the task has completed totally.
      Parameters:
      percent - The current percentage, from 0 to 1
      current - The number of operations completed so far
      max - The total number of operations to complete