org.apache.hadoop.hbase.zookeeper.lock
Class ZKInterProcessLockBase.AcquiredLock
java.lang.Object
org.apache.hadoop.hbase.zookeeper.lock.ZKInterProcessLockBase.AcquiredLock
- Enclosing class:
- ZKInterProcessLockBase
protected static class ZKInterProcessLockBase.AcquiredLock
- extends Object
Represents information about a lock held by this thread.
ZKInterProcessLockBase.AcquiredLock
public ZKInterProcessLockBase.AcquiredLock(String path,
int version)
- Store information about a lock.
- Parameters:
path
- The path to a lock's ZNodeversion
- The current version of the lock's ZNode
getPath
public String getPath()
getVersion
public int getVersion()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.