public interface PessimisticLockStrategy
PessimisticLock
instances
PessimisticLock.getLock()
is being called.Modifier and Type | Method and Description |
---|---|
void |
releaseLocking(VirtualTable.VirtualTableRow record,
Lockable lockable)
Releases the concerned lock at specific circumstances.
|
void |
triggerLocking(VirtualTable.VirtualTableRow record,
Lockable lockable)
Calls
PessimisticLock.getLock() at specific circumstances. |
void triggerLocking(VirtualTable.VirtualTableRow record, Lockable lockable) throws RowAlreadyLockedException
PessimisticLock.getLock()
at specific circumstances.record
- the "to lock" record.lockable
- the affected Lockable
RowAlreadyLockedException
- if the concerned row is already locked.void releaseLocking(VirtualTable.VirtualTableRow record, Lockable lockable)
record
- the "to release" record.lockable
- the affected Lockable
Copyright © 2003–2020 XDEV Software. All rights reserved.