Home » geronimo-2.2-source-release » org.apache.geronimo.concurrent.harmony » [javadoc | source]
org.apache.geronimo.concurrent.harmony
public static class: ThreadPoolExecutor.DiscardOldestPolicy [javadoc | source]
java.lang.Object
   org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$DiscardOldestPolicy

All Implemented Interfaces:
    RejectedExecutionHandler

A handler for rejected tasks that discards the oldest unhandled request and then retries execute, unless the executor is shut down, in which case the task is discarded.
Constructor:
 public DiscardOldestPolicy() 
Method from org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$DiscardOldestPolicy Summary:
rejectedExecution
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$DiscardOldestPolicy Detail:
 public  void rejectedExecution(Runnable r,
    ThreadPoolExecutor e) 
    Obtains and ignores the next task that the executor would otherwise execute, if one is immediately available, and then retries execution of task r, unless the executor is shut down, in which case task r is instead discarded.