org.apache.geronimo.concurrent.harmony
public static class: ThreadPoolExecutor.CallerRunsPolicy [javadoc |
source]
java.lang.Object
org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$CallerRunsPolicy
All Implemented Interfaces:
RejectedExecutionHandler
A handler for rejected tasks that runs the rejected task
directly in the calling thread of the
execute method,
unless the executor has been shut down, in which case the task
is discarded.
Method from org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$CallerRunsPolicy 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$CallerRunsPolicy Detail: |
public void rejectedExecution(Runnable r,
ThreadPoolExecutor e) {
if (!e.isShutdown()) {
r.run();
}
}
Executes task r in the caller's thread, unless the executor
has been shut down, in which case the task is discarded. |