Class ZkLockFactory

java.lang.Object
org.apache.iceberg.flink.maintenance.api.ZkLockFactory
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, TriggerLockFactory

public class ZkLockFactory extends Object implements TriggerLockFactory
Zookeeper backed implementation of the TriggerLockFactory.
See Also:
  • Constructor Details

    • ZkLockFactory

      public 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