|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.testng.internal.thread.PooledExecutorAdapter
public class PooledExecutorAdapter
An IPooledExecutor
implementation based on JDK1.5 native support.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor |
---|
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy |
Constructor Summary | |
---|---|
PooledExecutorAdapter(int noThreads)
|
Method Summary | |
---|---|
void |
awaitTermination(long timeout)
|
void |
execute(java.lang.Runnable command)
|
Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
---|
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, 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 |
Methods inherited from interface org.testng.internal.thread.IPooledExecutor |
---|
isTerminated, shutdown |
Constructor Detail |
---|
public PooledExecutorAdapter(int noThreads)
Method Detail |
---|
public void execute(java.lang.Runnable command)
execute
in interface java.util.concurrent.Executor
execute
in interface IPooledExecutor
execute
in class java.util.concurrent.ThreadPoolExecutor
public void awaitTermination(long timeout) throws java.lang.InterruptedException
awaitTermination
in interface IPooledExecutor
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |