This strategy is valid for LockMode#PESSIMISTIC_FORCE_INCREMENT.
| Access | Constructor and Description |
|---|---|
| public | PessimisticForceIncrementLockingStrategy(Lockable
The metadata for the entity to be locked. lockable, LockMode Indicates the type of lock to be acquired. lockMode)
Deprecated
as a consequence of
Construct locking strategy.
Lockable being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected LockMode | |
| public void | lock(Object
The id of the row to be locked id, Object The current version (or null if not versioned) version, Object The object logically being locked (currently not used) object, int timeout in milliseconds, 0 = no wait, -1 = wait indefinitely timeout, EventSource The session from which the lock request originated session)Implements org. |
| lockable | back to summary |
|---|---|
| private final Lockable lockable
Deprecated as a consequence of | |
| lockMode | back to summary |
|---|---|
| private final LockMode lockMode | |
| PessimisticForceIncrementLockingStrategy | back to summary |
|---|---|
| public PessimisticForceIncrementLockingStrategy(Lockable lockable, LockMode lockMode)
Deprecated as a consequence of Construct locking strategy. | |
| getLockMode | back to summary |
|---|---|
| protected LockMode getLockMode() Retrieve the specific lock mode defined.
| |
| lock | back to summary |
|---|---|
| public void lock(Object id, Object version, Object object, int timeout, EventSource session) Implements org. Doc from org. Acquire an appropriate type of lock on the underlying data that will endure until the end of the current transaction.
| |