@Singleton public abstract class AbstractThreadExecutorPolicy extends Object implements RejectedExecutionHandler, Thread.UncaughtExceptionHandler
The handler for rejected tasks runs the rejected task
directly in the calling thread of the
unless the executor has been shut down, in which case the task
is discarded (see
|Modifier and Type||Method and Description|
Run the given task within the current thread if the executor is not shut down.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defrunRejectedTask(runnable : Runnable, executor : ThreadPoolExecutor) : boolean
runnable- the runnable task to be executed
executor- the executor attempting to give the shut down status
trueif the task is run.
falseif the task was not run.
defrejectedExecution(runnable : Runnable, executor : ThreadPoolExecutor) : void
Copyright © 2021 the original authors or authors.