public static class Executors.BlockPolicy extends Object implements RejectedExecutionHandler
Constructor and Description |
---|
BlockPolicy()
Creates a BlockPolicy.
|
Modifier and Type | Method and Description |
---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Puts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.
|
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 taskCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved