org.jclouds.concurrent
Class DynamicThreadPoolExecutor.TimedBlockingPolicy

java.lang.Object
  extended by org.jclouds.concurrent.DynamicThreadPoolExecutor.TimedBlockingPolicy
All Implemented Interfaces:
RejectedExecutionHandler
Enclosing class:
DynamicThreadPoolExecutor

public static class DynamicThreadPoolExecutor.TimedBlockingPolicy
extends Object
implements RejectedExecutionHandler

A handler for rejected tasks that inserts the specified element into this queue, waiting if necessary up to the specified wait time for space to become available.


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

Constructor Detail

DynamicThreadPoolExecutor.TimedBlockingPolicy

public DynamicThreadPoolExecutor.TimedBlockingPolicy(long waitTime)
Parameters:
waitTime - wait time in milliseconds for space to become available.
Method Detail

rejectedExecution

public void rejectedExecution(Runnable r,
                              ThreadPoolExecutor executor)
Specified by:
rejectedExecution in interface RejectedExecutionHandler


Copyright © 2009-2011 jclouds. All Rights Reserved.