Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB Java Edition version 4.0.103
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sleepycat.je
Class LockTimeoutException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  com.sleepycat.je.DatabaseException
                      com.sleepycat.je.OperationFailureException
                          com.sleepycat.je.LockConflictException
                              com.sleepycat.je.LockTimeoutException

All Implemented Interfaces:
  Serializable

    public class LockTimeoutException

extends LockConflictException

Thrown when multiple threads are competing for a lock and the lock timeout interval is exceeded for the current thread. This may be the result of a deadlock or simply because a lock is held for longer than the timeout interval. The lock timeout interval may be set using `EnvironmentConfig.setLockTimeout(long, java.util.concurrent.TimeUnit)` or `Transaction.setLockTimeout(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.

Since:
  4.0
See Also:
  Serialized Form

Method Summary

Methods inherited from class com.sleepycat.je.LockConflictException
`getOwnerTxnIds, getWaiterTxnIds`

Methods inherited from class com.sleepycat.je.DatabaseException
`getMessage`

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB Java Edition version 4.0.103
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2004-2010 Oracle. All rights reserved.