Package org.redisson.api
Interface RReadWriteLockRx
-
- All Known Implementing Classes:
RedissonReadWriteLockRx
public interface RReadWriteLockRx
AReadWriteLock
maintains a pair of associatedlocks
, one for read-only operations and one for writing. Theread lock
may be held simultaneously by multiple reader threads, so long as there are no writers. Thewrite lock
is 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 RLockRx
readLock()
Returns the lock used for reading.RLockRx
writeLock()
Returns the lock used for writing.
-