Modifier and Type | Class and Description |
---|---|
static interface |
LimitingExecutor.RejectedExecutionHandler<T,C extends Callable<? extends T>> |
Constructor and Description |
---|
LimitingExecutor(LimitingExecutor.RejectedExecutionHandler<T,C> rejectHandler,
Semaphore semaphore) |
LimitingExecutor(PermitSupplier permitSupplier) |
LimitingExecutor(Semaphore semaphore) |
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(C callable) |
void |
execute(Runnable command) |
LimitingExecutor.RejectedExecutionHandler |
getRejectHandler() |
Semaphore |
getSemaphore() |
Callable<T> |
toLimitedCallable(C callable) |
String |
toString() |
public LimitingExecutor(PermitSupplier permitSupplier)
public LimitingExecutor(Semaphore semaphore)
public LimitingExecutor(LimitingExecutor.RejectedExecutionHandler<T,C> rejectHandler, Semaphore semaphore)
public LimitingExecutor.RejectedExecutionHandler getRejectHandler()
public Semaphore getSemaphore()
Copyright © 2018 SPF4J. All rights reserved.