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