org.norther.tammi.core.thread
Class DefaultPooledExecutor.QueuePolicy
java.lang.Object
java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
org.norther.tammi.core.thread.DefaultPooledExecutor.CallerRunsPolicy
org.norther.tammi.core.thread.DefaultPooledExecutor.QueuePolicy
- All Implemented Interfaces:
- RejectedExecutionHandler
- Enclosing class:
- DefaultPooledExecutor
public static class DefaultPooledExecutor.QueuePolicy
- extends DefaultPooledExecutor.CallerRunsPolicy
A handler for rejected tasks that queues the rejected task. If the queue
is full, the rejected task is run directly in the calling thread of the
execute method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPooledExecutor.QueuePolicy
public DefaultPooledExecutor.QueuePolicy()
- Constructs a new policy.
rejectedExecution
public void rejectedExecution(Runnable r,
ThreadPoolExecutor e)
- Specified by:
rejectedExecution
in interface RejectedExecutionHandler
- Overrides:
rejectedExecution
in class ThreadPoolExecutor.CallerRunsPolicy
Copyright © 2004 The Norther Organization. All rights reserved.