Class InterProcessReadWriteLock.ReadLock
java.lang.Object
org.apache.curator.framework.recipes.locks.InterProcessMutex
org.apache.curator.framework.recipes.locks.InterProcessReadWriteLock.ReadLock
- All Implemented Interfaces:
InterProcessLock
,Revocable<InterProcessMutex>
- Enclosing class:
InterProcessReadWriteLock
-
Constructor Summary
ConstructorDescriptionReadLock
(CuratorFramework client, String basePath, byte[] lockData, InterProcessReadWriteLock.WriteLock writeLock) -
Method Summary
Modifier and TypeMethodDescriptionprotected final byte[]
final Collection
<String> Return a sorted list of all current nodes participating in the lockMethods inherited from class org.apache.curator.framework.recipes.locks.InterProcessMutex
acquire, acquire, isAcquiredInThisProcess, isOwnedByCurrentThread, makeRevocable, makeRevocable, release
-
Constructor Details
-
ReadLock
public ReadLock(CuratorFramework client, String basePath, byte[] lockData, InterProcessReadWriteLock.WriteLock writeLock)
-
-
Method Details
-
getLockPath
-
getParticipantNodes
Description copied from class:InterProcessMutex
Return a sorted list of all current nodes participating in the lock- Overrides:
getParticipantNodes
in classInterProcessMutex
- Returns:
- list of nodes
- Throws:
Exception
- ZK errors, interruptions, etc.
-
getLockNodeBytes
protected final byte[] getLockNodeBytes()- Overrides:
getLockNodeBytes
in classInterProcessMutex
-