
public class Semaphore extends Semaphore
| Constructor and Description |
|---|
Semaphore(int maxSize,
boolean fairness,
ManagedConnectionPoolStatisticsImpl statistics)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
tryAcquire(long timeout,
TimeUnit unit) |
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueuedThreads, getQueueLength, hasQueuedThreads, isFair, reducePermits, release, release, toString, tryAcquire, tryAcquire, tryAcquirepublic Semaphore(int maxSize,
boolean fairness,
ManagedConnectionPoolStatisticsImpl statistics)
maxSize - The maxumum sizefairness - The fairnessstatistics - The statistics modulepublic boolean tryAcquire(long timeout,
TimeUnit unit)
throws InterruptedException
tryAcquire in class SemaphoreInterruptedExceptionCopyright © 2013 IronJacamar (http://www.ironjacamar.org)