Package com.mchange.v3.concurrent
Class BoundedExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
com.mchange.v3.concurrent.BoundedExecutorService
- All Implemented Interfaces:
Executor,ExecutorService
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedExecutorService(ExecutorService inner, int blockBound) BoundedExecutorService(ExecutorService inner, int blockBound, int restartBeneath) -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) voidcom.mchange.v3.concurrent.BoundedExecutorService.StategetState()booleanbooleanprotected <V> RunnableFuture<V>newTaskFor(Runnable runnable, V result) protected <V> RunnableFuture<V>newTaskFor(Callable<V> callable) voidshutdown()
-
Constructor Details
-
BoundedExecutorService
-
BoundedExecutorService
-
-
Method Details
-
getState
public com.mchange.v3.concurrent.BoundedExecutorService.State getState() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdown
public void shutdown() -
shutdownNow
-
awaitTermination
- Throws:
InterruptedException
-
execute
-
newTaskFor
- Overrides:
newTaskForin classAbstractExecutorService
-
newTaskFor
- Overrides:
newTaskForin classAbstractExecutorService
-