Class FlexibleThreadPoolWrapper

    • Constructor Detail

      • FlexibleThreadPoolWrapper

        public FlexibleThreadPoolWrapper​(int minThreadCount,
                                         int maxThreadCount,
                                         long keepAlive,
                                         TimeUnit timeUnit,
                                         ThreadFactory threadFactory)
      • FlexibleThreadPoolWrapper

        public FlexibleThreadPoolWrapper​(int minThreadCount,
                                         int maxThreadCount,
                                         long keepAlive,
                                         TimeUnit timeUnit,
                                         ThreadFactory threadFactory,
                                         OptionalInt queueCapacity)
    • Method Detail

      • getMinThreadCount

        public int getMinThreadCount()
      • setMinThreadCount

        public void setMinThreadCount​(int minThreadCount)
      • setMaxThreadCount

        public void setMaxThreadCount​(int maxThreadCount)
      • getKeepAliveMillis

        public long getKeepAliveMillis()
      • setKeepAliveMillis

        public void setKeepAliveMillis​(long keepAliveMillis)
      • setThreadFactory

        public void setThreadFactory​(ThreadFactory threadFactory)
      • prestartAllCoreThreads

        public void prestartAllCoreThreads()