public final class AdjustableSemaphore extends Object
Constructor and Description |
---|
AdjustableSemaphore(int size) |
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
int |
getMaxPermits() |
void |
release() |
void |
release(int numPermits) |
void |
setMaxPermits(int newMax) |
public void setMaxPermits(int newMax)
public void release()
public void release(int numPermits)
public void acquire() throws InterruptedException
InterruptedException
public int getMaxPermits()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.