public static class Executors.BlockPolicy extends Object implements RejectedExecutionHandler
| Constructor and Description |
|---|
Executors.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 RejectedExecutionHandlerr - the runnable task requested to be executede - the executor attempting to execute this taskCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved