Class JavaThreadPoolFeature

All Implemented Interfaces:
TaskAdviceFeature, WorkExecutorFeature
Direct Known Subclasses:
JavaThreadPoolFeature.WithShutdown

@Feature @Prefix("workers") public abstract class JavaThreadPoolFeature extends AbstractWorkExecutorFeature.WithTaskAdvice
  • Constructor Details

    • JavaThreadPoolFeature

      public JavaThreadPoolFeature()
  • Method Details

    • corePoolSize

      @Parameter protected int corePoolSize()
    • maxPoolSize

      @Parameter protected int maxPoolSize()
    • keepAliveTime

      @Parameter protected Duration keepAliveTime()
    • queueCapacity

      @Parameter protected int queueCapacity()
    • workExecutorImplementation

      protected ExecutorService workExecutorImplementation()
      Specified by:
      workExecutorImplementation in class AbstractWorkExecutorFeature
    • createQueue

      protected BlockingQueue<Runnable> createQueue()
    • createThreadFactory

      protected ThreadFactory createThreadFactory()
    • threadGroup

      protected io.vavr.control.Option<ThreadGroup> threadGroup()
    • createRejectedExecutionHandler

      protected io.vavr.control.Option<? extends RejectedExecutionHandler> createRejectedExecutionHandler()