public class PathLock
extends Object
Note: For all APIs, the caller should resolve the path to make sure we are locking the correct absolute path.
| Constructor and Description |
|---|
PathLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(org.apache.hadoop.fs.Path resolvedPath)
Acquire a lock for the path before writing.
|
void |
release(org.apache.hadoop.fs.Path resolvedPath)
Release the lock for the path after writing.
|