com.koushikdutta.async
Class AsyncServer.AsyncSemaphore

java.lang.Object
  extended by com.koushikdutta.async.AsyncServer.AsyncSemaphore
Enclosing class:
AsyncServer

public static class AsyncServer.AsyncSemaphore
extends java.lang.Object


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

AsyncServer.AsyncSemaphore

public AsyncServer.AsyncSemaphore()
Method Detail

acquire

public void acquire()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

tryAcquire

public boolean tryAcquire(long timeout,
                          java.util.concurrent.TimeUnit timeunit)
                   throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

release

public void release()