org.norther.tammi.core.thread
Class DefaultPooledExecutor.QueuePolicy

java.lang.Object
  extended by java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
      extended by org.norther.tammi.core.thread.DefaultPooledExecutor.CallerRunsPolicy
          extended by 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.


Constructor Summary
DefaultPooledExecutor.QueuePolicy()
          Constructs a new policy.
 
Method Summary
 void rejectedExecution(Runnable r, ThreadPoolExecutor e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPooledExecutor.QueuePolicy

public DefaultPooledExecutor.QueuePolicy()
Constructs a new policy.

Method Detail

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.