Package com.sun.ejb.containers
Class EjbThreadPoolExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- com.sun.ejb.containers.EjbThreadPoolExecutor
-
- All Implemented Interfaces:
Executor,ExecutorService
public class EjbThreadPoolExecutor extends ThreadPoolExecutor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
-
Constructor Summary
Constructors Constructor Description EjbThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, BlockingQueue<Runnable> workQueue, String threadPoolName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterExecute(Runnable r, Throwable t)protected <T> RunnableFuture<T>newTaskFor(Callable<T> callable)Ensure that we give out our EjbFutureTask as opposed to JDK's FutureTaskStringtoString()-
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
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, submit, submit, submit
-
-
-
-
Constructor Detail
-
EjbThreadPoolExecutor
public EjbThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, BlockingQueue<Runnable> workQueue, String threadPoolName)
-
-
Method Detail
-
newTaskFor
protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable)
Ensure that we give out our EjbFutureTask as opposed to JDK's FutureTask- Overrides:
newTaskForin classAbstractExecutorService- Parameters:
callable-- Returns:
- a RunnableFuture
-
toString
public String toString()
- Overrides:
toStringin classThreadPoolExecutor
-
afterExecute
protected void afterExecute(Runnable r, Throwable t)
- Overrides:
afterExecutein classThreadPoolExecutor
-
-