@Deprecated public class ReadWriteLock extends Object
ReadWriteLock
should be
used instead.Constructor and Description |
---|
ReadWriteLock()
Deprecated.
Constructs read-write lock.
|
Modifier and Type | Method and Description |
---|---|
void |
acquireRead()
Deprecated.
Acquires the lock for reading.
|
void |
acquireWrite()
Deprecated.
Acquires the lock for writing.
|
void |
releaseRead()
Deprecated.
Releases the lock for reading.
|
void |
releaseWrite()
Deprecated.
Releases the lock for writing.
|
public void acquireRead()
IllegalStateException
- Thrown if the read or write lock is already acquired.public void releaseRead()
IllegalStateException
- Thrown when the lock was not acquired by this thread.public void acquireWrite()
IllegalStateException
- Thrown if the read or write lock is already acquired.public void releaseWrite()
IllegalStateException
- Thrown when the lock was not acquired.Copyright © 2024. All rights reserved.