public interface LockSupport
Lockable
implementations.Modifier and Type | Method and Description |
---|---|
void |
initiateLocking(VirtualTable.VirtualTableRow row,
Lockable lockable)
Initiates the lock process considering the applied
PessimisticLockStrategy . |
boolean |
isNotLocked(VirtualTable.VirtualTableRow record,
Lockable lockable)
Informs about the lock state of a particular record.
|
void |
releaseLock(VirtualTable.VirtualTableRow row,
Lockable lockable)
Releases an existing lock for the concerned
VirtualTable.VirtualTableRow . |
void initiateLocking(VirtualTable.VirtualTableRow row, Lockable lockable) throws RowAlreadyLockedException, LockingException
PessimisticLockStrategy
.row
- the record which shall be locked.lockable
- the lockable implementation.RowAlreadyLockedException
- exception information about conflicting lock requests.LockingException
- exception information about an error within the lock process.Lockable.getLockStrategy()
void releaseLock(VirtualTable.VirtualTableRow row, Lockable lockable) throws LockingException
VirtualTable.VirtualTableRow
.row
- the record which shall be locked.lockable
- the lockable implementation.LockingException
- exception information about an error within the lock process.boolean isNotLocked(VirtualTable.VirtualTableRow record, Lockable lockable) throws LockingException
record
- the record to get the lock state from.lockable
- the lockable implementation.LockingException
- exception information about an error within the lock process.Copyright © 2003–2022 XDEV Software. All rights reserved.