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 int
static final long
static final int
static final String
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungThreadPool
(int corePoolSize, int maximumPoolSize, long keepAliveSeconds, ThreadFactory threadFactory) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
afterExecute
(Runnable task, Throwable ex) protected void
beforeExecute
(Thread worker, Runnable task) static ThreadPool
create()
static ThreadPool
static ThreadPool
int
protected void
void
rejectedExecution
(Runnable task, ThreadPoolExecutor executor) void
Von 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, toString
Von Klasse geerbte Methoden java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
Von Klasse geerbte Methoden java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von 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:
setRejectedExecutionHandler
in KlasseThreadPoolExecutor
-
getRejectedExecutionHandler
- Setzt außer Kraft:
getRejectedExecutionHandler
in KlasseThreadPoolExecutor
-
rejectedExecution
- Angegeben von:
rejectedExecution
in SchnittstelleRejectedExecutionHandler
-
getActiveCount
public int getActiveCount()- Setzt außer Kraft:
getActiveCount
in KlasseThreadPoolExecutor
-
beforeExecute
- Setzt außer Kraft:
beforeExecute
in KlasseThreadPoolExecutor
-
afterExecute
- Setzt außer Kraft:
afterExecute
in KlasseThreadPoolExecutor
-
potentialDeadlockDetected
protected void potentialDeadlockDetected()- Seit:
- 3.9
-
create
-
create
-
create
public static ThreadPool create(String threadGroupName, int corePoolSize, int maximumPoolSize, long keepAliveSeconds)
-