public class DynamoDBLockService
extends java.lang.Object
implements io.flamingock.community.internal.lock.LocalLockService
| Modifier and Type | Field and Description |
|---|---|
protected DynamoClients |
client |
protected software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable<LockEntryEntity> |
table |
| Modifier | Constructor and Description |
|---|---|
protected |
DynamoDBLockService(DynamoClients client,
io.flamingock.commons.utils.TimeService timeService) |
| Modifier and Type | Method and Description |
|---|---|
io.flamingock.core.engine.lock.LockAcquisition |
extendLock(io.flamingock.core.engine.lock.LockKey key,
io.flamingock.commons.utils.RunnerId owner,
long leaseMillis) |
io.flamingock.core.engine.lock.LockAcquisition |
getLock(io.flamingock.core.engine.lock.LockKey lockKey) |
protected void |
initialize(java.lang.Boolean indexCreation) |
void |
releaseLock(io.flamingock.core.engine.lock.LockKey lockKey,
io.flamingock.commons.utils.RunnerId owner) |
io.flamingock.core.engine.lock.LockAcquisition |
upsert(io.flamingock.core.engine.lock.LockKey key,
io.flamingock.commons.utils.RunnerId owner,
long leaseMillis) |
protected final DynamoClients client
protected software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable<LockEntryEntity> table
protected DynamoDBLockService(DynamoClients client, io.flamingock.commons.utils.TimeService timeService)
protected void initialize(java.lang.Boolean indexCreation)
public io.flamingock.core.engine.lock.LockAcquisition upsert(io.flamingock.core.engine.lock.LockKey key,
io.flamingock.commons.utils.RunnerId owner,
long leaseMillis)
upsert in interface io.flamingock.community.internal.lock.LocalLockServicepublic io.flamingock.core.engine.lock.LockAcquisition extendLock(io.flamingock.core.engine.lock.LockKey key,
io.flamingock.commons.utils.RunnerId owner,
long leaseMillis)
throws io.flamingock.core.engine.lock.LockServiceException
extendLock in interface io.flamingock.core.engine.lock.LockServiceio.flamingock.core.engine.lock.LockServiceExceptionpublic io.flamingock.core.engine.lock.LockAcquisition getLock(io.flamingock.core.engine.lock.LockKey lockKey)
getLock in interface io.flamingock.core.engine.lock.LockServicepublic void releaseLock(io.flamingock.core.engine.lock.LockKey lockKey,
io.flamingock.commons.utils.RunnerId owner)
releaseLock in interface io.flamingock.core.engine.lock.LockService