public interface RReadWriteLockReactive
ReadWriteLock
maintains a pair of associated locks
, one for read-only operations and one for writing.
The read lock
may be held simultaneously by
multiple reader threads, so long as there are no writers. The
write lock
is exclusive.
Works in non-fair mode. Therefore order of read and write
locking is unspecified.Modifier and Type | Method and Description |
---|---|
RLockReactive |
readLock()
Returns the lock used for reading.
|
RLockReactive |
writeLock()
Returns the lock used for writing.
|
RLockReactive readLock()
RLockReactive writeLock()
Copyright © 2014–2019 The Redisson Project. All rights reserved.