| Package | Description |
|---|---|
| io.mongock.driver.core.lock |
| Modifier and Type | Method and Description |
|---|---|
LockEntry |
LockRepository.findByKey(String lockKey)
Retrieves a lock by key
|
| Modifier and Type | Method and Description |
|---|---|
void |
LockRepository.insertUpdate(LockEntry newLock)
a) If there is an existing lock in the database for the same key and owner
(existingLock.key==newLock.key &&
existingLoc.owner==newLock.owner), then the lock in database is updated/refreshed with the new values. |
void |
LockRepository.updateIfSameOwner(LockEntry newLock)
The only goal of this method is to update(mainly to extend the expiry date) the lock in case is already owned.
|
Copyright © 2022. All rights reserved.