Package org.redisson.rx
Class RedissonReadWriteLockRx
- java.lang.Object
-
- org.redisson.rx.RedissonReadWriteLockRx
-
- All Implemented Interfaces:
RReadWriteLockRx
public class RedissonReadWriteLockRx extends Object implements RReadWriteLockRx
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonReadWriteLockRx(CommandRxExecutor commandExecutor, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RLockRx
readLock()
Returns the lock used for reading.RLockRx
writeLock()
Returns the lock used for writing.
-
-
-
Constructor Detail
-
RedissonReadWriteLockRx
public RedissonReadWriteLockRx(CommandRxExecutor commandExecutor, String name)
-
-
Method Detail
-
readLock
public RLockRx readLock()
Description copied from interface:RReadWriteLockRx
Returns the lock used for reading.- Specified by:
readLock
in interfaceRReadWriteLockRx
- Returns:
- the lock used for reading
-
writeLock
public RLockRx writeLock()
Description copied from interface:RReadWriteLockRx
Returns the lock used for writing.- Specified by:
writeLock
in interfaceRReadWriteLockRx
- Returns:
- the lock used for writing
-
-