Package org.redisson.api
Interface RReadWriteLockReactive
-
- All Known Implementing Classes:
RedissonReadWriteLockReactive
public interface RReadWriteLockReactiveAReadWriteLockmaintains a pair of associatedlocks, one for read-only operations and one for writing. Theread lockmay be held simultaneously by multiple reader threads, so long as there are no writers. Thewrite lockis exclusive. Works in non-fair mode. Therefore order of read and write locking is unspecified.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RLockReactivereadLock()Returns the lock used for reading.RLockReactivewriteLock()Returns the lock used for writing.
-
-
-
Method Detail
-
readLock
RLockReactive readLock()
Returns the lock used for reading.- Returns:
- the lock used for reading
-
writeLock
RLockReactive writeLock()
Returns the lock used for writing.- Returns:
- the lock used for writing
-
-