Interface LocalAwareExecutorService

    • Method Detail

      • execute

        void execute​(java.lang.Runnable command,
                     ExecutorLocals locals)
      • maybeExecuteImmediately

        void maybeExecuteImmediately​(java.lang.Runnable command)
      • 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, but one that does not ever decrease across successive calls.
        Returns:
        the number of tasks
      • getMaxTasksQueued

        default int getMaxTasksQueued()