public interface RReadWriteLock extends ReadWriteLock, RExpirable
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 |
---|---|
RLock |
readLock()
Returns the lock used for reading.
|
RLock |
writeLock()
Returns the lock used for writing.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlink
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsync
RLock readLock()
readLock
in interface ReadWriteLock
RLock writeLock()
writeLock
in interface ReadWriteLock
Copyright © 2014–2018 The Redisson Project. All rights reserved.