Java java.util.concurrent.locks ReentrantReadWriteLock fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent.locks ReentrantReadWriteLock fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent.locks ReentrantReadWriteLock.

The text is from its open source code.

Subclass

java.util.concurrent.locks.ReentrantReadWriteLock has subclasses.
Click this link to see all its subclasses.

Constructor

ReentrantReadWriteLock()
Creates a new ReentrantReadWriteLock with default (nonfair) ordering properties.
ReentrantReadWriteLock(boolean fair)
Creates a new ReentrantReadWriteLock with the given fairness policy.

Method

intgetQueueLength()
Returns an estimate of the number of threads waiting to acquire either the read or write lock.
intgetReadLockCount()
Queries the number of read locks held for this lock.
inthashCode()
Returns a hash code value for the object.
booleanisWriteLocked()
Queries if the write lock is held by any thread.
ReentrantReadWriteLock.ReadLockreadLock()
StringtoString()
Returns a string identifying this lock, as well as its lock state.
ReentrantReadWriteLock.WriteLockwriteLock()