org.elasticsearch.common.util.concurrent
Class DynamicThreadPoolExecutor.ForceQueuePolicy

java.lang.Object
  extended by org.elasticsearch.common.util.concurrent.DynamicThreadPoolExecutor.ForceQueuePolicy
All Implemented Interfaces:
java.util.concurrent.RejectedExecutionHandler
Enclosing class:
DynamicThreadPoolExecutor

public static class DynamicThreadPoolExecutor.ForceQueuePolicy
extends java.lang.Object
implements java.util.concurrent.RejectedExecutionHandler

A handler for rejected tasks that adds the specified element to this queue, waiting if necessary for space to become available.


Constructor Summary
DynamicThreadPoolExecutor.ForceQueuePolicy()
           
 
Method Summary
 void rejectedExecution(java.lang.Runnable r, java.util.concurrent.ThreadPoolExecutor executor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicThreadPoolExecutor.ForceQueuePolicy

public DynamicThreadPoolExecutor.ForceQueuePolicy()
Method Detail

rejectedExecution

public void rejectedExecution(java.lang.Runnable r,
                              java.util.concurrent.ThreadPoolExecutor executor)
Specified by:
rejectedExecution in interface java.util.concurrent.RejectedExecutionHandler