ehcache

net.sf.ehcache.constructs.nonstop
Class NonstopThreadPool

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

public class NonstopThreadPool
extends Object

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

Author:
Abhishek Sanoujam

Constructor Summary
NonstopThreadPool(ThreadFactory threadFactory)
          Constructor accepting the threadFactory
 
Method Summary
 StackTraceElement[] getNonstopThreadStackTrace()
          Get the stack trace details of the nonstop thread for the current thread
 void shutdownNow()
          Shuts down the thread pool
<T> Future<T>
submit(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(ThreadFactory threadFactory)
Constructor accepting the threadFactory

Parameters:
threadFactory -
Method Detail

submit

public <T> Future<T> submit(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


getNonstopThreadStackTrace

public StackTraceElement[] getNonstopThreadStackTrace()
Get the stack trace details of the nonstop thread for the current thread


ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.