public class TransactionTimeoutException extends LockConflictException
Transaction.setTxnTimeout(long, java.util.concurrent.TimeUnit)
.
The Transaction
handle is invalidated as a result of this
exception.
For compatibility with JE 3.3 and earlier, DeadlockException
is
thrown instead of LockTimeoutException
and TransactionTimeoutException
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 |
---|
TransactionTimeoutException(com.sleepycat.je.txn.Locker locker,
String message)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
getOwnerTxnIds, getTimeoutMillis, getWaiterTxnIds, setOwnerTxnIds, setTimeoutMillis, setWaiterTxnIds
addErrorMessage, addRethrownStackTrace, getMessage, getVersionHeader
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TransactionTimeoutException(com.sleepycat.je.txn.Locker locker, String message)
public OperationFailureException wrapSelf(String msg)
wrapSelf
in class OperationFailureException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.