Package org.qiunet.utils.timer.executor
Class DThreadPoolExecutor.DiscardPolicy
java.lang.Object
org.qiunet.utils.timer.executor.DThreadPoolExecutor.DiscardPolicy
- All Implemented Interfaces:
DRejectedExecutionHandler
- Enclosing class:
- DThreadPoolExecutor
public static class DThreadPoolExecutor.DiscardPolicy
extends Object
implements DRejectedExecutionHandler
A handler for rejected tasks that silently discards the
rejected task.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDoes nothing, which has the effect of discarding task r.
-
Constructor Details
-
DiscardPolicy
public DiscardPolicy()Creates aDiscardPolicy.
-
-
Method Details
-
rejectedExecution
Does nothing, which has the effect of discarding task r.- Specified by:
rejectedExecutionin interfaceDRejectedExecutionHandler- Parameters:
r- the runnable task requested to be executede- the executor attempting to execute this task
-