ThreadPoolExecutor.DiscardOldestPolicy


ThreadPoolExecutor.DiscardOldestPolicy java.util.concurrent

Java 5.0

This RejectedExecutionHandler implementation discards the rejected Runnable if the ThreadPoolExecutor has been shut down. Otherwise, it discards the oldest pending task that has not run and tries again to execute( ) the rejected task.

 public static class  ThreadPoolExecutor.DiscardOldestPolicy  implements RejectedExecutionHandler {  // Public Constructors  public  DiscardOldestPolicy  ( );  // Methods Implementing RejectedExecutionHandler  public void  rejectedExecution  (Runnable  r  , ThreadPoolExecutor  e  );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net