public static class ThreadPoolExecutor.DiscardPolicy extends Object implements ThreadPoolExecutor.RejectedExecutionHandler
| Constructor and Description |
|---|
ThreadPoolExecutor.DiscardPolicy()
Creates a
DiscardPolicy. |
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Does nothing, which has the effect of discarding task r.
|
public ThreadPoolExecutor.DiscardPolicy()
DiscardPolicy.public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution in interface ThreadPoolExecutor.RejectedExecutionHandlerr - the runnable task requested to be executede - the executor attempting to execute this taskCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.