Package com.yahoo.concurrent
Class CachedThreadPoolWithFallback
java.lang.Object
com.yahoo.concurrent.CachedThreadPoolWithFallback
- All Implemented Interfaces:
AutoCloseable
,Executor
An executor that will first try a bounded cached thread pool before falling back to an unbounded
single threaded thread pool that will take over dispatching to the primary pool.
-
Constructor Summary
ConstructorDescriptionCachedThreadPoolWithFallback
(String baseName, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit timeUnit) -
Method Summary
-
Constructor Details
-
CachedThreadPoolWithFallback
-
-
Method Details
-
execute
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-