Class NullBalancer
java.lang.Object
org.apache.maven.surefire.junitcore.pc.NullBalancer
- All Implemented Interfaces:
Balancer
This balancer implements
Balancer
and does not do anything -no blocking operation.- Since:
- 2.16
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Acquires a permit from this balancer, blocking until one is available.void
void
Releases a permit, returning it to the balancer.
-
Constructor Details
-
NullBalancer
NullBalancer()
-
-
Method Details
-
acquirePermit
public boolean acquirePermit()Description copied from interface:Balancer
Acquires a permit from this balancer, blocking until one is available.- Specified by:
acquirePermit
in interfaceBalancer
- Returns:
true
if current thread is NOT interrupted while waiting for a permit.
-
releasePermit
public void releasePermit()Description copied from interface:Balancer
Releases a permit, returning it to the balancer.- Specified by:
releasePermit
in interfaceBalancer
-
releaseAllPermits
public void releaseAllPermits()- Specified by:
releaseAllPermits
in interfaceBalancer
-