Package org.ojalgo.concurrent
Class DaemonPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.ojalgo.concurrent.DaemonPoolExecutor
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicInteger
private static final ThreadGroup
(package private) static final DaemonPoolExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionDaemonPoolExecutor
(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) DaemonPoolExecutor
(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) DaemonPoolExecutor
(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) DaemonPoolExecutor
(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionstatic Future
<?> static <T> Future
<T> static <T> Future
<T> static ExecutorService
newCachedThreadPool
(String name) LikeExecutors.newCachedThreadPool()
but with identifiable (daemon) threadsstatic ExecutorService
newFixedThreadPool
(String name, int nThreads) LikeExecutors.newFixedThreadPool(int)
but with identifiable (daemon) threadsstatic ExecutorService
newScheduledThreadPool
(String name, int corePoolSize) LikeExecutors.newScheduledThreadPool(int)
but with identifiable (daemon) threadsstatic ExecutorService
LikeExecutors.newSingleThreadExecutor()
but with identifiable (daemon) threadsstatic ExecutorService
LikeExecutors.newSingleThreadScheduledExecutor()
but with identifiable (daemon) threadsstatic ThreadFactory
newThreadFactory
(String name) static ThreadFactory
newThreadFactory
(ThreadGroup group, String name) 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, toString
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, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
close
-
Field Details
-
COUNTER
-
GROUP
-
INSTANCE
-
-
Constructor Details
-
DaemonPoolExecutor
DaemonPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) -
DaemonPoolExecutor
DaemonPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) -
DaemonPoolExecutor
DaemonPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) -
DaemonPoolExecutor
DaemonPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
-
-
Method Details
-
invoke
- See Also:
-
invoke
- See Also:
-
invoke
- See Also:
-
newCachedThreadPool
LikeExecutors.newCachedThreadPool()
but with identifiable (daemon) threads -
newFixedThreadPool
LikeExecutors.newFixedThreadPool(int)
but with identifiable (daemon) threads -
newScheduledThreadPool
LikeExecutors.newScheduledThreadPool(int)
but with identifiable (daemon) threads -
newSingleThreadExecutor
LikeExecutors.newSingleThreadExecutor()
but with identifiable (daemon) threads -
newSingleThreadScheduledExecutor
LikeExecutors.newSingleThreadScheduledExecutor()
but with identifiable (daemon) threads -
newThreadFactory
-
newThreadFactory
-