org.omnaest.utils.threads.submit
Interface Waiter<T>
- Type Parameters:
T -
- All Superinterfaces:
- Serializable
public interface Waiter<T>
- extends Serializable
A Waiter allows to wait for the results of a SubmitGroup and allows to reduce the result into further forms.
- Author:
- Omnaest
anAmountOfTime
Reducer<T> anAmountOfTime(int amount,
TimeUnit timeUnit)
- Parameters:
amount - timeUnit - TimeUnit
- Returns:
- this
untilAllTasksAreDone
Reducer<T> untilAllTasksAreDone()
- Returns:
- this
untilTheNumberOfTasksAreDone
Reducer<T> untilTheNumberOfTasksAreDone(int numberOfTasks)
- Parameters:
numberOfTasks -
- Returns:
- this
untilThePercentageOfTasksAreDone
Reducer<T> untilThePercentageOfTasksAreDone(double ratio)
- Parameters:
ratio -
- Returns:
- this
Copyright © 2013. All Rights Reserved.