public class AsyncSemaphore extends Object
Constructor and Description |
---|
AsyncSemaphore(int permits) |
Modifier and Type | Method and Description |
---|---|
void |
acquire(Runnable listener) |
void |
acquire(Runnable listener,
int permits) |
int |
getCounter() |
int |
queueSize() |
void |
release() |
boolean |
remove(Runnable listener) |
void |
removeListeners() |
String |
toString() |
boolean |
tryAcquire(long timeoutMillis) |
public boolean tryAcquire(long timeoutMillis)
public int queueSize()
public void removeListeners()
public void acquire(Runnable listener)
public void acquire(Runnable listener, int permits)
public boolean remove(Runnable listener)
public int getCounter()
public void release()
Copyright © 2014–2018 The Redisson Project. All rights reserved.