Package org.apache.iceberg
Interface LockManager
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DynamoDbLockManager
,LockManagers.BaseLockManager
An interface for locking, used to ensure commit isolation.
-
Method Summary
Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
acquire
Try to acquire a lock- Parameters:
entityId
- ID of the entity to lockownerId
- ID of the owner if the lock- Returns:
- if the lock for the entity is acquired by the owner
-
release
Release a lockexception must not be thrown for this method.
- Parameters:
entityId
- ID of the entity to lockownerId
- ID of the owner if the lock- Returns:
- if the owner held the lock and successfully released it.
-
initialize
Initialize lock manager from catalog properties.- Parameters:
properties
- catalog properties
-