LockNotAvailableExceptionpublic class LockNotGrantedException extends DeadlockException
EnvironmentConfig.LOCK_OLD_LOCK_EXCEPTIONS is set to true. Non-blocking
transactions are configured using TransactionConfig.setNoWait(boolean).
The Transaction handle is invalidated as a result of this
exception.
For compatibility with JE 3.3 and earlier, LockNotGrantedException is thrown instead of LockNotAvailableException when EnvironmentConfig.LOCK_OLD_LOCK_EXCEPTIONS is set to true. This
configuration parameter is false by default. See EnvironmentConfig.LOCK_OLD_LOCK_EXCEPTIONS for information on the changes
that should be made to all applications that upgrade from JE 3.3 or
earlier.
Normally, applications should catch the base class LockConflictException rather than catching one of its subclasses. All lock
conflicts are typically handled in the same way, which is normally to abort
and retry the transaction. See LockConflictException for more
information.
| Constructor and Description |
|---|
LockNotGrantedException(Locker locker,
String message)
Deprecated.
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
OperationFailureException |
wrapSelf(String msg)
Deprecated.
For internal use only.
|
getOwnerTxnIds, getTimeoutMillis, getWaiterTxnIds, setOwnerTxnIds, setTimeoutMillis, setWaiterTxnIdsisReplicaWriteaddErrorMessage, addRethrownStackTrace, getMessage, getVersionHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OperationFailureException wrapSelf(String msg)
wrapSelf in class DeadlockExceptionCopyright © 2024. All rights reserved.