Class ThreadPoolExecutorBuilder<E extends ExecutorPlus>

java.lang.Object
org.apache.cassandra.concurrent.NamedThreadFactory.MetaFactory
org.apache.cassandra.concurrent.ThreadPoolExecutorBuilder<E>
All Implemented Interfaces:
ExecutorBuilder<E>

public class ThreadPoolExecutorBuilder<E extends ExecutorPlus> extends NamedThreadFactory.MetaFactory implements ExecutorBuilder<E>
Configure a ThreadPoolExecutorPlus, applying Cassandra's best practices by default
  • Core threads may timeout, and use a default keepAlive time in keepAliveUnits
  • Threads share the same ThreadGroup, which may be configurably a child of a specified ThreadGroup descended from the same parent of the NamedThreadFactory.MetaFactory
  • By default queues are unbounded in length
  • The default RejectedExecutionHandler is implementation dependent, but may be overridden
  • The default Thread.UncaughtExceptionHandler is inherited from NamedThreadFactory.MetaFactory, which in turn receives it from the ExecutorBuilderFactory