public interface LockManager
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
boolean |
acquire(java.lang.String entityId,
java.lang.String ownerId)
Try to acquire a lock
|
void |
initialize(java.util.Map<java.lang.String,java.lang.String> properties)
Initialize lock manager from catalog properties.
|
boolean |
release(java.lang.String entityId,
java.lang.String ownerId)
Release a lock
|
boolean acquire(java.lang.String entityId, java.lang.String ownerId)
entityId
- ID of the entity to lockownerId
- ID of the owner if the lockboolean release(java.lang.String entityId, java.lang.String ownerId)
exception must not be thrown for this method.
entityId
- ID of the entity to lockownerId
- ID of the owner if the lockvoid initialize(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- catalog properties