Class CachedThreadPoolExecutor

java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.opendaylight.yangtools.util.concurrent.CachedThreadPoolExecutor
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class CachedThreadPoolExecutor extends ThreadPoolExecutor
A ThreadPoolExecutor with a specified bounded queue capacity that favors reusing previously constructed threads, when they are available, over creating new threads.

See SpecialExecutors.newBoundedCachedThreadPool(int, int, java.lang.String, java.lang.Class<?>) for more details.

Author:
Thomas Pantelis