Package com.yahoo.concurrent
Class CachedThreadPoolWithFallback
- java.lang.Object
-
- com.yahoo.concurrent.CachedThreadPoolWithFallback
-
- All Implemented Interfaces:
AutoCloseable
,Executor
public class CachedThreadPoolWithFallback extends Object implements 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
Constructors Constructor Description CachedThreadPoolWithFallback(String baseName, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit timeUnit)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-