org.jboss.jca.core.connectionmanager.pool.mcp
Class Semaphore
java.lang.Object
java.util.concurrent.Semaphore
org.jboss.jca.core.connectionmanager.pool.mcp.Semaphore
- All Implemented Interfaces:
- Serializable
public class Semaphore
- extends Semaphore
A semaphore implementation that supports statistics
- Author:
- Jesper Pedersen
- See Also:
- Serialized Form
| Methods inherited from class java.util.concurrent.Semaphore |
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueuedThreads, getQueueLength, hasQueuedThreads, isFair, reducePermits, release, release, toString, tryAcquire, tryAcquire, tryAcquire |
Semaphore
public Semaphore(int maxSize,
boolean fairness,
ManagedConnectionPoolStatisticsImpl statistics)
- Constructor
- Parameters:
maxSize - The maxumum sizefairness - The fairnessstatistics - The statistics module
tryAcquire
public boolean tryAcquire(long timeout,
TimeUnit unit)
throws InterruptedException
-
- Overrides:
tryAcquire in class Semaphore
- Throws:
InterruptedException
Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)