public class LockManager extends Object implements Serializable, AutoCloseable
LockProvider and provides an easy way to manage the lifecycle of a lock.| Constructor and Description |
|---|
LockManager(HoodieWriteConfig writeConfig,
org.apache.hadoop.fs.FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
LockProvider |
getLockProvider() |
void |
lock() |
void |
unlock()
We need to take care of the scenarios that current thread may not be the holder of this lock
and tries to call unlock()
|
public LockManager(HoodieWriteConfig writeConfig, org.apache.hadoop.fs.FileSystem fs)
public void lock()
public void unlock()
public LockProvider getLockProvider()
public void close()
close in interface AutoCloseableCopyright © 2022 The Apache Software Foundation. All rights reserved.