org.jboss.jca.adapters.jdbc.util
Class ReentrantLock

java.lang.Object
  extended by java.util.concurrent.locks.ReentrantLock
      extended by org.jboss.jca.adapters.jdbc.util.ReentrantLock
All Implemented Interfaces:
Serializable, Lock

public class ReentrantLock
extends ReentrantLock

ReentrantLock override

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
ReentrantLock(boolean fair)
          Constructor
 
Method Summary
 Thread getOwner()
          
 Collection<Thread> getQueuedThreads()
          
 
Methods inherited from class java.util.concurrent.locks.ReentrantLock
getHoldCount, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReentrantLock

public ReentrantLock(boolean fair)
Constructor

Parameters:
fair - Fair locking
Method Detail

getOwner

public Thread getOwner()

Overrides:
getOwner in class ReentrantLock

getQueuedThreads

public Collection<Thread> getQueuedThreads()

Overrides:
getQueuedThreads in class ReentrantLock


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)