public static class java.util.concurrent
ThreadPoolExecutor.DiscardPolicy


Hide details Login
Java SE 6
  
Implements: RejectedExecutionHandler
Contained within: ThreadPoolExecutor

A handler for rejected tasks that silently discards the rejected task.

Constructors
public ThreadPoolExecutor.DiscardPolicy()
Creates a DiscardPolicy.

Methods
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
Does nothing, which has the effect of discarding task r.
rthe runnable task requested to be executed
ethe executor attempting to execute this task