public class DialogLockInUseNotificationStrategy extends Object implements LockNotificationStrategy
LockNotificationStrategy
.Constructor and Description |
---|
DialogLockInUseNotificationStrategy()
Only for integration purpose.
|
Modifier and Type | Method and Description |
---|---|
void |
lockInUseNotification(LockingException cause,
PessimisticLock lock,
Lockable lockable)
Triggers the notification process for a specific lock state.
|
void |
lockInUseNotification(PessimisticLock lock,
Lockable lockable)
Triggers the notification process for a specific lock state.
|
void |
lockInUseNotification(RowAlreadyLockedException inUseException,
PessimisticLock lock,
Lockable lockable)
Triggers the notification process for a specific lock state.
|
void |
lockInUseNotificationFinished(PessimisticLock lock,
Lockable lockable)
Releases the notification process after a specific lock state.
|
public DialogLockInUseNotificationStrategy()
public void lockInUseNotification(RowAlreadyLockedException inUseException, PessimisticLock lock, Lockable lockable) throws LockingException
lockInUseNotification
in interface LockNotificationStrategy
inUseException
- the specific lock in use information.lock
- the concerned locklockable
- the lockable which contains the notification monitor -
Lockable.getLockInUseNotifier()
LockingException
- if the locking process fails.public void lockInUseNotification(LockingException cause, PessimisticLock lock, Lockable lockable) throws LockingException
lockInUseNotification
in interface LockNotificationStrategy
cause
- the specific locking error information.lock
- the concerned locklockable
- the lockable which contains the notification monitor -
Lockable.getLockInUseNotifier()
LockingException
- if the locking process fails.public void lockInUseNotification(PessimisticLock lock, Lockable lockable) throws LockingException
lockInUseNotification
in interface LockNotificationStrategy
lock
- the concerned locklockable
- the lockable which contains the notification monitor -
Lockable.getLockInUseNotifier()
LockingException
- if the locking process fails.public void lockInUseNotificationFinished(PessimisticLock lock, Lockable lockable)
lockInUseNotificationFinished
in interface LockNotificationStrategy
lock
- the concerned PessimisticLock
instance.lockable
- the lockable which contains the notification monitor -
Lockable.getLockInUseNotifier()
Copyright © 2003–2021 XDEV Software. All rights reserved.