Class DaemonClientAsyncExecutorProvider

  • All Implemented Interfaces:
    AutoCloseable, org.glassfish.jersey.spi.ExecutorServiceProvider

    @ClientAsyncExecutor
    public class DaemonClientAsyncExecutorProvider
    extends org.glassfish.jersey.spi.ThreadPoolExecutorProvider
    Mostly copied from jersey DefaultClientAsyncExecutorProvider, but with daemon threads
    • Constructor Detail

      • DaemonClientAsyncExecutorProvider

        @Inject
        public DaemonClientAsyncExecutorProvider​(@Named("ClientAsyncThreadPoolSize")
                                                 int poolSize)
    • Method Detail

      • getMaximumPoolSize

        protected int getMaximumPoolSize()
        Overrides:
        getMaximumPoolSize in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
      • getCorePoolSize

        protected int getCorePoolSize()
        Overrides:
        getCorePoolSize in class org.glassfish.jersey.spi.AbstractThreadPoolProvider<ThreadPoolExecutor>
      • getBackingThreadFactory

        protected ThreadFactory getBackingThreadFactory()
        Overrides:
        getBackingThreadFactory in class org.glassfish.jersey.spi.AbstractThreadPoolProvider<ThreadPoolExecutor>