@ThreadSafe public class AsyncSemaphore<T> extends Object
| Constructor and Description |
|---|
AsyncSemaphore(int maxPermits,
Executor submitExecutor,
Function<T,com.google.common.util.concurrent.ListenableFuture<?>> submitter) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<?> |
submit(T task) |
Copyright © 2010–2020 Airlift. All rights reserved.