Class SingleThreadExecutorPlus

    • Method Detail

      • getCorePoolSize

        public int getCorePoolSize()
        Description copied from interface: ResizableThreadPool
        Returns core pool size of thread pool, the minimum number of workers (where that makes sense for a thread pool, SEPExecutor does not have a minimum size).
        Specified by:
        getCorePoolSize in interface ResizableThreadPool
        Overrides:
        getCorePoolSize in class java.util.concurrent.ThreadPoolExecutor
      • setCorePoolSize

        public void setCorePoolSize​(int number)
        Description copied from interface: ResizableThreadPool
        Allows user to resize minimum size of the thread pool.
        Specified by:
        setCorePoolSize in interface ResizableThreadPool
        Overrides:
        setCorePoolSize in class java.util.concurrent.ThreadPoolExecutor
      • getMaximumPoolSize

        public int getMaximumPoolSize()
        Description copied from interface: ResizableThreadPool
        Returns maximum pool size of thread pool.
        Specified by:
        getMaximumPoolSize in interface ResizableThreadPool
        Overrides:
        getMaximumPoolSize in class java.util.concurrent.ThreadPoolExecutor
      • setMaximumPoolSize

        public void setMaximumPoolSize​(int number)
        Description copied from interface: ResizableThreadPool
        Allows user to resize maximum size of the thread pool.
        Specified by:
        setMaximumPoolSize in interface ResizableThreadPool
        Overrides:
        setMaximumPoolSize in class java.util.concurrent.ThreadPoolExecutor