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() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTask(Supplier<com.google.common.util.concurrent.ListenableFuture<?>> task)
Runs the given task.
|
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 © 2017. All rights reserved.