Class StandardLockInternalsDriver
java.lang.Object
org.apache.curator.framework.recipes.locks.StandardLockInternalsDriver
- All Implemented Interfaces:
LockInternalsDriver
,LockInternalsSorter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreatesTheLock
(CuratorFramework client, String path, byte[] lockNodeBytes) fixForSorting
(String str, String lockName) protected String
getsTheLock
(CuratorFramework client, List<String> children, String sequenceNodeName, int maxLeases) static String
standardFixForSorting
(String str, String lockName)
-
Constructor Details
-
StandardLockInternalsDriver
public StandardLockInternalsDriver()
-
-
Method Details
-
getsTheLock
public PredicateResults getsTheLock(CuratorFramework client, List<String> children, String sequenceNodeName, int maxLeases) throws Exception - Specified by:
getsTheLock
in interfaceLockInternalsDriver
- Throws:
Exception
-
getSortingSequence
-
createsTheLock
public String createsTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception - Specified by:
createsTheLock
in interfaceLockInternalsDriver
- Throws:
Exception
-
fixForSorting
- Specified by:
fixForSorting
in interfaceLockInternalsSorter
-
standardFixForSorting
-