public interface LocalAwareExecutorService extends java.util.concurrent.ExecutorService, ResizableThreadPool
Modifier and Type | Interface and Description |
---|---|
static interface |
LocalAwareExecutorService.MaximumPoolSizeListener |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable command,
ExecutorLocals locals) |
int |
getActiveTaskCount()
Returns the approximate number of threads that are actively
executing tasks.
|
long |
getCompletedTaskCount()
Returns the approximate total number of tasks that have
completed execution.
|
default int |
getMaxTasksQueued() |
int |
getPendingTaskCount()
Returns the approximate total of tasks waiting to be executed.
|
void |
maybeExecuteImmediately(java.lang.Runnable command) |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
getCorePoolSize, getMaximumPoolSize, setCorePoolSize, setMaximumPoolSize
void execute(java.lang.Runnable command, ExecutorLocals locals)
void maybeExecuteImmediately(java.lang.Runnable command)
int getActiveTaskCount()
long getCompletedTaskCount()
int getPendingTaskCount()
default int getMaxTasksQueued()
Copyright © 2009-2021 The Apache Software Foundation