Class JdbcLockFactory
java.lang.Object
org.apache.iceberg.flink.maintenance.operator.JdbcLockFactory
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,TriggerLockFactory
JDBC table backed implementation of the
TriggerLockFactory
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.flink.maintenance.operator.TriggerLockFactory
TriggerLockFactory.Lock
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JdbcLockFactory
Creates a newTriggerLockFactory
. The lockId should be unique between the users of the same uri.- Parameters:
uri
- of the jdbc connectionlockId
- which should indentify the job and the tableproperties
- used for creating the jdbc connection pool
-
-
Method Details
-
open
public void open()- Specified by:
open
in interfaceTriggerLockFactory
-
createLock
- Specified by:
createLock
in interfaceTriggerLockFactory
-
createRecoveryLock
- Specified by:
createRecoveryLock
in interfaceTriggerLockFactory
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-