public class DynamicSemaphore extends Object
| Constructor and Description |
|---|
DynamicSemaphore() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire() |
void |
release() |
void |
tryToIncreaseCredit(int suggestedSemaphoreVal)
received an advice credit to transfer from the
initial static value
|
public void acquire()
throws InterruptedException
InterruptedExceptionpublic void release()
public void tryToIncreaseCredit(int suggestedSemaphoreVal)
suggestedSemaphoreVal - Copyright © 2022 The Apache Software Foundation. All rights reserved.