KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > concurrent > locks > ReentrantLock

java.util.concurrent.locks
Class ReentrantLock

java.lang.Object
  extended by java.util.concurrent.locks.ReentrantLock
All Implemented Interfaces:
Serializable, Lock
See Also:
Top Examples, tryLock, getHoldCount(), isHeldByCurrentThread()

public int getHoldCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Thread getOwner()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Collection<Thread> getQueuedThreads()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getQueueLength()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Collection<Thread> getWaitingThreads(Condition condition)
See Also:
NullPointerException, IllegalArgumentException, IllegalMonitorStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getWaitQueueLength(Condition condition)
See Also:
NullPointerException, IllegalArgumentException, IllegalMonitorStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean hasQueuedThread(Thread thread)
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean hasQueuedThreads()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean hasWaiters(Condition condition)
See Also:
NullPointerException, IllegalArgumentException, IllegalMonitorStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean isFair()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isHeldByCurrentThread()
See Also:
Thread.holdsLock(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isLocked()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void lock()
See Also:
Lock
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void lockInterruptibly()
                       throws InterruptedException
See Also:
Thread.interrupt(), Lock
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Condition newCondition()
See Also:
Lock, InterruptedException, interrupted, waiting, IllegalMonitorStateException, signalling, notifyAll, notify, wait
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ReentrantLock()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ReentrantLock(boolean fair)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object, Thread.getName()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean tryLock()
See Also:
Lock, tryLock(0, TimeUnit.SECONDS)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean tryLock(long timeout,
                       TimeUnit unit)
                throws InterruptedException
See Also:
Thread.interrupt(), NullPointerException, Lock, tryLock()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void unlock()
See Also:
IllegalMonitorStateException, Lock
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags