- <init>
Creates a new ThreadPoolExecutor with the given initial parameters.
- execute
Executes the given task sometime in the future. The task may execute in a new
thread or in an existi
- shutdown
Initiates an orderly shutdown in which previously submitted tasks are executed,
but no new tasks wil
- afterExecute
Method invoked upon completion of execution of the given Runnable. This method
is invoked by the thr
- beforeExecute
Method invoked prior to executing the given Runnable in the given thread. This
method is invoked by
- addWorker
Checks if a new worker can be added with respect to current pool state and the
given bound (either c
- advanceRunState
Transitions runState to given target, or leaves it alone if already at least the
given target.
- allowsCoreThreadTimeOut
Returns true if this pool allows core threads to time out and terminate if no
tasks arrive within th
- checkShutdownAccess
If there is a security manager, makes sure caller has permission to shut down
threads in general (se
- clearInterruptsForTaskRun
Ensures that unless the pool is stopping, the current thread does not have its
interrupt set. This r
- compareAndDecrementWorkerCount
Attempt to CAS-decrement the workerCount field of ctl.
- compareAndIncrementWorkerCount
Attempt to CAS-increment the workerCount field of ctl.