net.sf.mmm.util.concurrent.base
Class CachedThreadPoolExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by java.util.concurrent.ThreadPoolExecutor
          extended by net.sf.mmm.util.concurrent.base.CachedThreadPoolExecutor
All Implemented Interfaces:
Executor, ExecutorService

public class CachedThreadPoolExecutor
extends ThreadPoolExecutor

This is an advanced Executor that uses a Thread-pool. It is about the same as Executors.newCachedThreadPool() and inherits all its implementation from ThreadPoolExecutor. The only reason was to make it easier to be managed as component in an IoC-Container such as spring.

Since:
1.0.2
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
 
Constructor Summary
CachedThreadPoolExecutor()
          The constructor.
CachedThreadPoolExecutor(ThreadFactory threadFactory)
          The constructor.
 
Method Summary
 
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedThreadPoolExecutor

public CachedThreadPoolExecutor()
The constructor.


CachedThreadPoolExecutor

public CachedThreadPoolExecutor(ThreadFactory threadFactory)
The constructor.

Parameters:
threadFactory - is the ThreadFactory used to create new Threads.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.