public class LockNotAvailableException extends LockConflictException
TransactionConfig.setNoWait(boolean)
.
The Transaction
handle is not invalidated as a result of
this exception.
For compatibility with prior releases, 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 JE applications.
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.
getOwnerTxnIds, getWaiterTxnIds
getMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.