@NotThreadSafe public class ZookeeperBasedLockProvider extends BaseZookeeperBasedLockProvider
LockProvider implementation allows to lock table operations
using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
The lock provider requires mandatory config "hoodie.write.lock.zookeeper.base_path" and
"hoodie.write.lock.zookeeper.lock_key" to be set.lockConfiguration, lockKey, zkBasePath| Constructor and Description |
|---|
ZookeeperBasedLockProvider(LockConfiguration lockConfiguration,
StorageConfiguration<?> conf) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLockKey(LockConfiguration lockConfiguration) |
protected String |
getZkBasePath(LockConfiguration lockConfiguration) |
close, generateLogStatement, generateLogSuffixString, getLock, getLockPath, tryLock, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentOwnerLockInfo, lock, lockInterruptibly, newCondition, tryLockpublic ZookeeperBasedLockProvider(LockConfiguration lockConfiguration, StorageConfiguration<?> conf)
protected String getZkBasePath(LockConfiguration lockConfiguration)
getZkBasePath in class BaseZookeeperBasedLockProviderprotected String getLockKey(LockConfiguration lockConfiguration)
getLockKey in class BaseZookeeperBasedLockProviderCopyright © 2024 The Apache Software Foundation. All rights reserved.