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
InterruptedException
public boolean tryAcquire()
public boolean tryAcquire(long timeoutInNanos)
public void release()
Copyright © 2005–2024 Onix Solutions. All rights reserved.