Class ZkLockFactory
java.lang.Object
org.apache.iceberg.flink.maintenance.api.ZkLockFactory
- All Implemented Interfaces:
- Closeable,- Serializable,- AutoCloseable,- TriggerLockFactory
Zookeeper backed implementation of the 
TriggerLockFactory.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.iceberg.flink.maintenance.api.TriggerLockFactoryTriggerLockFactory.Lock
- 
Constructor SummaryConstructorsConstructorDescriptionZkLockFactory(String connectString, String lockId, int sessionTimeoutMs, int connectionTimeoutMs, int baseSleepTimeMs, int maxRetries) Create Zookeeper lock factory
- 
Method Summary
- 
Constructor Details- 
ZkLockFactorypublic ZkLockFactory(String connectString, String lockId, int sessionTimeoutMs, int connectionTimeoutMs, int baseSleepTimeMs, int maxRetries) Create Zookeeper lock factory- Parameters:
- connectString- Zookeeper connection string
- lockId- which should identify the job and the table
- sessionTimeoutMs- Session timeout in milliseconds
- connectionTimeoutMs- Connection timeout in milliseconds
- baseSleepTimeMs- Base sleep time in milliseconds
- maxRetries- Maximum number of retries
 
 
- 
- 
Method Details- 
openpublic void open()- Specified by:
- openin interface- TriggerLockFactory
 
- 
createLock- Specified by:
- createLockin interface- TriggerLockFactory
 
- 
createRecoveryLock- Specified by:
- createRecoveryLockin interface- TriggerLockFactory
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 
-