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 Details

    • CachedThreadPoolWithFallback

      public CachedThreadPoolWithFallback(String baseName, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit timeUnit)
  • Method Details