public class StandardLockInternalsDriver extends Object implements LockInternalsDriver
| Constructor and Description |
|---|
StandardLockInternalsDriver() |
| Modifier and Type | Method and Description |
|---|---|
String |
createsTheLock(org.apache.curator.framework.CuratorFramework client,
String path,
byte[] lockNodeBytes) |
String |
fixForSorting(String str,
String lockName) |
PredicateResults |
getsTheLock(org.apache.curator.framework.CuratorFramework client,
List<String> children,
String sequenceNodeName,
int maxLeases) |
static String |
standardFixForSorting(String str,
String lockName) |
public PredicateResults getsTheLock(org.apache.curator.framework.CuratorFramework client, List<String> children, String sequenceNodeName, int maxLeases) throws Exception
getsTheLock in interface LockInternalsDriverExceptionpublic String createsTheLock(org.apache.curator.framework.CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception
createsTheLock in interface LockInternalsDriverExceptionpublic String fixForSorting(String str, String lockName)
fixForSorting in interface LockInternalsSorterCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.