Class ThreadPoolExecutorProvider

All Implemented Interfaces:
AutoCloseable, ExecutorServiceProvider

public class ThreadPoolExecutorProvider extends AbstractThreadPoolProvider<ThreadPoolExecutor> implements ExecutorServiceProvider
Default implementation of the Jersey executor service provider SPI.

This provider creates and provisions a shared ThreadPoolExecutor instance using the customizable values for :

Subclasses may override the respective methods to customize the parameters of the provisioned thread pool executor.

Since:
2.18
Author:
Marek Potociar
  • Constructor Details

    • ThreadPoolExecutorProvider

      public ThreadPoolExecutorProvider(String name)
      Create a new instance of the thread pool executor provider.
      Parameters:
      name - provider name. The name will be used to name the threads created invalid input: '&' used by the provisioned thread pool executor.
    • ThreadPoolExecutorProvider

      public ThreadPoolExecutorProvider(String name, Configuration configuration)
      Create a new instance of the thread pool executor provider.
      Parameters:
      name - provider name. The name will be used to name the threads created invalid input: '&' used by the provisioned thread pool executor.
      configuration - Configuration properties.
  • Method Details