public static class ThreadPoolExecutor.CallerRunsPolicy extends Object implements RejectedExecutionHandler
execute
method,
unless the executor has been shut down, in which case the task
is discarded.Constructor and Description |
---|
CallerRunsPolicy()
Creates a
CallerRunsPolicy . |
Modifier and Type | Method and Description |
---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Executes task r in the caller's thread, unless the executor
has been shut down, in which case the task is discarded.
|
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution
in interface RejectedExecutionHandler
r
- the runnable task requested to be executede
- the executor attempting to execute this taskaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.