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