public class BalancingThreadPoolExecutor
extends java.util.concurrent.AbstractExecutorService
Constructor and Description |
---|
BalancingThreadPoolExecutor(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor,
ThreadProfiler threadProfiler,
float targetUtilization,
float smoothingWeight,
int balanceAfter) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
execute(java.lang.Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow() |
public BalancingThreadPoolExecutor(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor, ThreadProfiler threadProfiler, float targetUtilization, float smoothingWeight, int balanceAfter)
public void shutdown()
public java.util.List<java.lang.Runnable> shutdownNow()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void execute(java.lang.Runnable command)