Interface ResizableThreadPool

    • Method Detail

      • getCorePoolSize

        int getCorePoolSize()
        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).
      • setCorePoolSize

        void setCorePoolSize​(int newCorePoolSize)
        Allows user to resize minimum size of the thread pool.
      • getMaximumPoolSize

        int getMaximumPoolSize()
        Returns maximum pool size of thread pool.
      • setMaximumPoolSize

        void setMaximumPoolSize​(int newMaximumPoolSize)
        Allows user to resize maximum size of the thread pool.
      • getActiveTaskCount

        int getActiveTaskCount()
        Returns the approximate number of threads that are actively executing tasks.
        Returns:
        the number of threads
      • getCompletedTaskCount

        long getCompletedTaskCount()
        Returns the approximate total number of tasks that have completed execution. Because the states of tasks and threads may change dynamically during computation, the returned value is only an approximation, but one that does not ever decrease across successive calls.
        Returns:
        the number of tasks
      • getPendingTaskCount

        int getPendingTaskCount()
        Returns the approximate total of tasks waiting to be executed. Because the states of tasks and threads may change dynamically during computation, the returned value is only an approximation.
        Returns:
        the number of tasks
      • getMaxTasksQueued

        default int getMaxTasksQueued()
      • oldestTaskQueueTime

        default long oldestTaskQueueTime()