Class Executors2.CachedThreadPoolBuilder
- java.lang.Object
-
- com.complexible.common.util.concurrent.Executors2.CachedThreadPoolBuilder
-
- Enclosing class:
- Executors2
public static final class Executors2.CachedThreadPoolBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Executors2.CachedThreadPoolBuilder
abort()
java.util.concurrent.ThreadPoolExecutor
build()
java.util.concurrent.ThreadPoolExecutor
build(java.util.concurrent.BlockingQueue<java.lang.Runnable> theWorkQueue)
java.util.concurrent.ScheduledThreadPoolExecutor
buildScheduled()
Executors2.CachedThreadPoolBuilder
callerRuns()
Executors2.CachedThreadPoolBuilder
corePoolSize(int theCorePoolSize)
Executors2.CachedThreadPoolBuilder
discard()
Executors2.CachedThreadPoolBuilder
discardOldest()
Executors2.CachedThreadPoolBuilder
keepAlive(long theKeepAlive, java.util.concurrent.TimeUnit theTimeUnit)
Executors2.CachedThreadPoolBuilder
maxPoolSize(int theMaxPoolSize)
Executors2.CachedThreadPoolBuilder
rejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler theRejectedExecutionHandler)
Executors2.CachedThreadPoolBuilder
threadFactory(java.util.concurrent.ThreadFactory theThreadFactory)
-
-
-
Method Detail
-
corePoolSize
public Executors2.CachedThreadPoolBuilder corePoolSize(int theCorePoolSize)
-
keepAlive
public Executors2.CachedThreadPoolBuilder keepAlive(long theKeepAlive, java.util.concurrent.TimeUnit theTimeUnit)
-
maxPoolSize
public Executors2.CachedThreadPoolBuilder maxPoolSize(int theMaxPoolSize)
-
rejectedExecutionHandler
public Executors2.CachedThreadPoolBuilder rejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler theRejectedExecutionHandler)
-
threadFactory
public Executors2.CachedThreadPoolBuilder threadFactory(java.util.concurrent.ThreadFactory theThreadFactory)
-
callerRuns
public Executors2.CachedThreadPoolBuilder callerRuns()
-
abort
public Executors2.CachedThreadPoolBuilder abort()
-
discard
public Executors2.CachedThreadPoolBuilder discard()
-
discardOldest
public Executors2.CachedThreadPoolBuilder discardOldest()
-
build
public java.util.concurrent.ThreadPoolExecutor build()
-
build
public java.util.concurrent.ThreadPoolExecutor build(java.util.concurrent.BlockingQueue<java.lang.Runnable> theWorkQueue)
-
buildScheduled
public java.util.concurrent.ScheduledThreadPoolExecutor buildScheduled()
-
-