Package biz.onixs.util.concurrent
Class LightweightSemaphore
- java.lang.Object
-
- biz.onixs.util.concurrent.LightweightSemaphore
-
public class LightweightSemaphore extends Object
-
-
Constructor Summary
Constructors Constructor Description LightweightSemaphore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire()voidrelease()booleantryAcquire()booleantryAcquire(long timeoutInNanos)
-
-
-
Method Detail
-
acquire
public void acquire() throws InterruptedException- Throws:
InterruptedException
-
tryAcquire
public boolean tryAcquire()
-
tryAcquire
public boolean tryAcquire(long timeoutInNanos)
-
release
public void release()
-
-