com.cloudtran.util
Class NamedSemaphore

java.lang.Object
  extended by java.util.concurrent.Semaphore
      extended by com.cloudtran.util.NamedSemaphore
All Implemented Interfaces:
Serializable

public class NamedSemaphore
extends Semaphore

See Also:
Serialized Form

Constructor Summary
NamedSemaphore(int permits, boolean fair, String name)
           
NamedSemaphore(int permits, String name)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.util.concurrent.Semaphore
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueueLength, hasQueuedThreads, isFair, release, release, tryAcquire, tryAcquire, tryAcquire, tryAcquire
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedSemaphore

public NamedSemaphore(int permits,
                      String name)

NamedSemaphore

public NamedSemaphore(int permits,
                      boolean fair,
                      String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Semaphore