ehcache

net.sf.ehcache.constructs.nonstop
Class NonstopThreadPool

java.lang.Object
  extended by net.sf.ehcache.constructs.nonstop.NonstopThreadPool

public class NonstopThreadPool
extends java.lang.Object

A thread pool that creates another thread pool per requesting thread.

Author:
Abhishek Sanoujam

Constructor Summary
NonstopThreadPool(java.util.concurrent.ThreadFactory threadFactory)
          Constructor accepting the threadFactory
 
Method Summary
 void shutdownNow()
          Shuts down the thread pool
<T> java.util.concurrent.Future<T>
submit(java.util.concurrent.Callable<T> task)
          Submit a callable task to be executed by the thread pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonstopThreadPool

public NonstopThreadPool(java.util.concurrent.ThreadFactory threadFactory)
Constructor accepting the threadFactory

Parameters:
threadFactory -
Method Detail

submit

public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
Submit a callable task to be executed by the thread pool

Type Parameters:
T -
Parameters:
task -
Returns:
Future of the task

shutdownNow

public void shutdownNow()
Shuts down the thread pool


ehcache

true