ListenableFutureCollector instead. The use of the
BlockingAsynchronousTaskController encourages splitting of Streams by accumulating
an Iterable of ListenableFutures inside the task
Supplier. Not only is that cumbersome to read but it is also not idiomatic for Streams and
bears the risk of accumulating a large number of Futures before finally waiting for
them.@Deprecated public class BlockingAsynchronousTaskController extends Object
ListenableFutures. The task execution
of a new task is delayed if the taskLimit, specified during construction, is reached. Delayed tasks are
resumed when running tasks complete by invoking the callback on the ListenableFuture.| Constructor and Description |
|---|
BlockingAsynchronousTaskController()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginTask(Supplier<com.google.common.util.concurrent.ListenableFuture<?>> task)
Deprecated.
Runs the given task.
|
public BlockingAsynchronousTaskController()
public void beginTask(Supplier<com.google.common.util.concurrent.ListenableFuture<?>> task)
taskLimit, specified during construction, is
reached.task - A task that returns a ListenableFuture.Copyright © 2018. All rights reserved.