public class LightweightSemaphore extends Object
| Constructor and Description |
|---|
LightweightSemaphore() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire() |
void |
release() |
boolean |
tryAcquire() |
boolean |
tryAcquire(long timeoutInNanos) |
public void acquire()
throws InterruptedException
InterruptedExceptionpublic boolean tryAcquire()
public boolean tryAcquire(long timeoutInNanos)
public void release()
Copyright © 2005–2025 Onix Solutions. All rights reserved.