|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.koushikdutta.async.AsyncServer.AsyncSemaphore
public static class AsyncServer.AsyncSemaphore
| Constructor Summary | |
|---|---|
AsyncServer.AsyncSemaphore()
|
|
| Method Summary | |
|---|---|
void |
acquire()
|
void |
release()
|
boolean |
tryAcquire(long timeout,
java.util.concurrent.TimeUnit timeunit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncServer.AsyncSemaphore()
| Method Detail |
|---|
public void acquire()
throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean tryAcquire(long timeout,
java.util.concurrent.TimeUnit timeunit)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void release()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||