Class NonSharedThreadPoolStrategy
java.lang.Object
org.apache.maven.surefire.junitcore.pc.SchedulingStrategy
org.apache.maven.surefire.junitcore.pc.AbstractThreadPoolStrategy
org.apache.maven.surefire.junitcore.pc.NonSharedThreadPoolStrategy
- All Implemented Interfaces:
Destroyable
Parallel strategy for non-shared thread pool in private package.
- Since:
- 2.16
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNonSharedThreadPoolStrategy(ConsoleLogger logger, ExecutorService threadPool) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinished()Waiting for scheduled tasks to finish.booleanMethods inherited from class org.apache.maven.surefire.junitcore.pc.AbstractThreadPoolStrategy
destroy, getFutureResults, getThreadPool, schedule, setDefaultShutdownHandler, stop, stopNowMethods inherited from class org.apache.maven.surefire.junitcore.pc.SchedulingStrategy
canSchedule, disable, logQuietly
-
Constructor Details
-
NonSharedThreadPoolStrategy
NonSharedThreadPoolStrategy(ConsoleLogger logger, ExecutorService threadPool)
-
-
Method Details
-
finished
Description copied from class:SchedulingStrategyWaiting for scheduled tasks to finish. New tasks will not be scheduled by calling this method.- Specified by:
finishedin classSchedulingStrategy- Returns:
trueif successfully stopped the scheduler, elsefalseif already stopped (a shared thread pool was shutdown externally).- Throws:
InterruptedException- if interrupted while waiting for scheduled tasks to finish- See Also:
-
RunnerScheduler.finished()