public final class BoundedExecutorService
extends java.util.concurrent.AbstractExecutorService
Constructor and Description |
---|
BoundedExecutorService(java.util.concurrent.ExecutorService inner,
int blockBound) |
BoundedExecutorService(java.util.concurrent.ExecutorService inner,
int blockBound,
int restartBeneath) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
execute(java.lang.Runnable runnable) |
com.mchange.v3.concurrent.BoundedExecutorService.State |
getState() |
boolean |
isShutdown() |
boolean |
isTerminated() |
protected <V> java.util.concurrent.RunnableFuture<V> |
newTaskFor(java.util.concurrent.Callable<V> callable) |
protected <V> java.util.concurrent.RunnableFuture<V> |
newTaskFor(java.lang.Runnable runnable,
V result) |
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow() |
public BoundedExecutorService(java.util.concurrent.ExecutorService inner, int blockBound, int restartBeneath)
public BoundedExecutorService(java.util.concurrent.ExecutorService inner, int blockBound)
public com.mchange.v3.concurrent.BoundedExecutorService.State getState()
public boolean isShutdown()
public boolean isTerminated()
public void shutdown()
public java.util.List<java.lang.Runnable> shutdownNow()
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void execute(java.lang.Runnable runnable)
protected <V> java.util.concurrent.RunnableFuture<V> newTaskFor(java.util.concurrent.Callable<V> callable)
newTaskFor
in class java.util.concurrent.AbstractExecutorService
protected <V> java.util.concurrent.RunnableFuture<V> newTaskFor(java.lang.Runnable runnable, V result)
newTaskFor
in class java.util.concurrent.AbstractExecutorService