Package org.apache.cassandra.concurrent
Interface ExecutorBuilderFactory<E extends ExecutorPlus,S extends SequentialExecutorPlus>
- All Known Subinterfaces:
ExecutorBuilderFactory.Jmxable<E,,S> ExecutorFactory,ExecutorFactory.LocalAwareSubFactory,ExecutorFactory.LocalAwareSubFactoryWithJMX
- All Known Implementing Classes:
ExecutorFactory.Default
public interface ExecutorBuilderFactory<E extends ExecutorPlus,S extends SequentialExecutorPlus>
Entry point for configuring and creating new executors.
Supports quick and easy construction of default-configured executors via
sequential(String)
pooled(String, int)
Supports custom configuration of executors via
configureSequential(String)
configurePooled(String, int)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceExecutorBuilderFactory.Jmxable<E extends ExecutorPlus,S extends SequentialExecutorPlus> Entry point for configuring and creating new executors. -
Method Summary
Modifier and TypeMethodDescriptionExecutorBuilder<? extends E>configurePooled(String name, int threads) Configure a pooled executor with the requested number of threadsExecutorBuilder<? extends S>configureSequential(String name) Configure a sequential (single threaded) executordefault EReturn a default configuration of pooled executordefault Ssequential(String name) Return a default configuration of sequential executor
-
Method Details
-
configureSequential
Configure a sequential (single threaded) executor -
configurePooled
Configure a pooled executor with the requested number of threads -
sequential
Return a default configuration of sequential executor -
pooled
Return a default configuration of pooled executor
-