Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * See the file LICENSE for redistribution information.
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
Thrown when multiple threads are competing for a lock and the transaction timeout interval is exceeded for the current thread. The transaction timeout interval may be set using Transaction.setTxnTimeout(long).

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.

    private static final long serialVersionUID = 1;

For internal use only.

    public TransactionTimeoutException(Locker lockerString message) {

For internal use only.

    private TransactionTimeoutException(String message,
                                        TransactionTimeoutException cause) {

For internal use only.

    public OperationFailureException wrapSelf(String msg) {
        return new TransactionTimeoutException(msgthis);
New to GrepCode? Check out our FAQ X