Module java.base
Package java.util.concurrent.locks

# Class ReentrantLock

=
public class ReentrantLock
extends java.lang.Object
implements java.io.Serializable, java.util.concurrent.locks.Lock

## Constructors

- =
  public ReentrantLock()
- =
  public ReentrantLock(boolean arg0)

## Methods

- =
  public int getHoldCount()
- =
  protected java.lang.Thread getOwner()
- =
  public final int getQueueLength()
- =
  protected java.util.Collection<java.lang.Thread> getQueuedThreads()
- =
  public int getWaitQueueLength(java.util.concurrent.locks.Condition arg0)
- =
  protected java.util.Collection<java.lang.Thread> getWaitingThreads(java.util.concurrent.locks.Condition arg0)
- =
  public final boolean hasQueuedThread(java.lang.Thread arg0)
- =
  public final boolean hasQueuedThreads()
- =
  public boolean hasWaiters(java.util.concurrent.locks.Condition arg0)
- =
  public final boolean isFair()
- =
  public boolean isHeldByCurrentThread()
- =
  public boolean isLocked()
- =
  public void lock()
- =
  public void lockInterruptibly() throws java.lang.InterruptedException
- =
  public java.util.concurrent.locks.Condition newCondition()
- =
  public java.lang.String toString()
- =
  public boolean tryLock()
- =
  public boolean tryLock(long arg0, java.util.concurrent.TimeUnit arg1) throws java.lang.InterruptedException
- =
  public void unlock()

## Serialized Form

=

### serialVersionUID

=7373984872572414699

### Serialized Fields

- =
  java.util.concurrent.locks.ReentrantLock.Sync sync

## Summary

No differences.