Class BalancerFactory
java.lang.Object
org.apache.maven.surefire.junitcore.pc.BalancerFactory
- Since:
- 2.16
- Author:
- Tibor Digana (tibor17)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Balancer
createBalancer
(int concurrency) Balancer without fairness.static Balancer
createBalancerWithFairness
(int concurrency) Balancer with fairness.static Balancer
Infinite permits.
-
Method Details
-
createInfinitePermitsBalancer
Infinite permits.- Returns:
- Balancer wih infinite permits
-
createBalancer
Balancer without fairness. Fairness guarantees the waiting schedulers to wake up in order they acquired a permit.- Parameters:
concurrency
- number of permits to acquire when maintaining concurrency on tests- Returns:
- Balancer with given number of permits
-
createBalancerWithFairness
Balancer with fairness. Fairness guarantees the waiting schedulers to wake up in order they acquired a permit.- Parameters:
concurrency
- number of permits to acquire when maintaining concurrency on tests- Returns:
- Balancer with given number of permits
-