Class StandardLockInternalsDriver
java.lang.Object
org.apache.curator.framework.recipes.locks.StandardLockInternalsDriver
- All Implemented Interfaces:
LockInternalsDriver,LockInternalsSorter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatesTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) fixForSorting(String str, String lockName) protected StringgetsTheLock(CuratorFramework client, List<String> children, String sequenceNodeName, int maxLeases) static StringstandardFixForSorting(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:
getsTheLockin interfaceLockInternalsDriver- Throws:
Exception
-
getSortingSequence
-
createsTheLock
public String createsTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception - Specified by:
createsTheLockin interfaceLockInternalsDriver- Throws:
Exception
-
fixForSorting
- Specified by:
fixForSortingin interfaceLockInternalsSorter
-
standardFixForSorting
-