Class NullBalancer
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.pc.NullBalancer
-
-
Constructor Summary
Constructors Constructor Description NullBalancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacquirePermit()Acquires a permit from this balancer, blocking until one is available.voidreleaseAllPermits()voidreleasePermit()Releases a permit, returning it to the balancer.
-
-
-
Method Detail
-
acquirePermit
public boolean acquirePermit()
Description copied from interface:BalancerAcquires a permit from this balancer, blocking until one is available.- Specified by:
acquirePermitin interfaceBalancer- Returns:
trueif current thread is NOT interrupted while waiting for a permit.
-
releasePermit
public void releasePermit()
Description copied from interface:BalancerReleases a permit, returning it to the balancer.- Specified by:
releasePermitin interfaceBalancer
-
releaseAllPermits
public void releaseAllPermits()
- Specified by:
releaseAllPermitsin interfaceBalancer
-
-