Klasse ThreadPool
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.eclipse.net4j.util.concurrent.ThreadPool
- Alle implementierten Schnittstellen:
AutoCloseable,Executor,ExecutorService,RejectedExecutionHandler
- Seit:
- 3.6
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final longstatic final intstatic final String -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungThreadPool(int corePoolSize, int maximumPoolSize, long keepAliveSeconds, ThreadFactory threadFactory) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidafterExecute(Runnable task, Throwable ex) protected voidbeforeExecute(Thread worker, Runnable task) static ThreadPoolcreate()static ThreadPoolstatic ThreadPoolintprotected voidvoidrejectedExecution(Runnable task, ThreadPoolExecutor executor) voidVon Klasse geerbte Methoden java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, finalize, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setThreadFactory, shutdown, shutdownNow, terminated, toStringVon Klasse geerbte Methoden java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitVon Klasse geerbte Methoden java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.concurrent.ExecutorService
close
-
Felddetails
-
DEFAULT_THREAD_GROUP_NAME
- Siehe auch:
-
DEFAULT_CORE_POOL_SIZE
public static final int DEFAULT_CORE_POOL_SIZE- Siehe auch:
-
DEFAULT_MAXIMUM_POOL_SIZE
public static final int DEFAULT_MAXIMUM_POOL_SIZE- Siehe auch:
-
DEFAULT_KEEP_ALIVE_SECONDS
public static final long DEFAULT_KEEP_ALIVE_SECONDS- Siehe auch:
-
-
Konstruktordetails
-
ThreadPool
public ThreadPool(int corePoolSize, int maximumPoolSize, long keepAliveSeconds, ThreadFactory threadFactory)
-
-
Methodendetails
-
setRejectedExecutionHandler
- Setzt außer Kraft:
setRejectedExecutionHandlerin KlasseThreadPoolExecutor
-
getRejectedExecutionHandler
- Setzt außer Kraft:
getRejectedExecutionHandlerin KlasseThreadPoolExecutor
-
rejectedExecution
- Angegeben von:
rejectedExecutionin SchnittstelleRejectedExecutionHandler
-
getActiveCount
public int getActiveCount()- Setzt außer Kraft:
getActiveCountin KlasseThreadPoolExecutor
-
beforeExecute
- Setzt außer Kraft:
beforeExecutein KlasseThreadPoolExecutor
-
afterExecute
- Setzt außer Kraft:
afterExecutein KlasseThreadPoolExecutor
-
potentialDeadlockDetected
protected void potentialDeadlockDetected()- Seit:
- 3.9
-
create
-
create
-
create
public static ThreadPool create(String threadGroupName, int corePoolSize, int maximumPoolSize, long keepAliveSeconds)
-