Class NonSharedThreadPoolStrategy

All Implemented Interfaces:
Destroyable

final class NonSharedThreadPoolStrategy extends AbstractThreadPoolStrategy
Parallel strategy for non-shared thread pool in private package.
Since:
2.16
See Also:
  • Constructor Details

  • Method Details

    • hasSharedThreadPool

      public boolean hasSharedThreadPool()
      Specified by:
      hasSharedThreadPool in class SchedulingStrategy
      Returns:
      true if a thread pool associated with this strategy can be shared with other strategies.
    • finished

      public boolean finished() throws InterruptedException
      Description copied from class: SchedulingStrategy
      Waiting for scheduled tasks to finish. New tasks will not be scheduled by calling this method.
      Specified by:
      finished in class SchedulingStrategy
      Returns:
      true if successfully stopped the scheduler, else false if already stopped (a shared thread pool was shutdown externally).
      Throws:
      InterruptedException - if interrupted while waiting for scheduled tasks to finish
      See Also:
      • RunnerScheduler.finished()