public class JobLimiter extends Object
Constructor and Description |
---|
JobLimiter(int limit) |
Modifier and Type | Method and Description |
---|---|
<V> com.google.common.util.concurrent.ListenableFuture<V> |
schedule(com.google.common.util.concurrent.ListeningExecutorService service,
ThrowingSupplier<com.google.common.util.concurrent.ListenableFuture<V>,Exception> callable)
Adds a new task to the queue.
|
public <V> com.google.common.util.concurrent.ListenableFuture<V> schedule(com.google.common.util.concurrent.ListeningExecutorService service, ThrowingSupplier<com.google.common.util.concurrent.ListenableFuture<V>,Exception> callable)