Contents
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(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 1current- The number of operations completed so farmax- The total number of operations to complete
-