| 
 | Berkeley DB version 5.3.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sleepycat.db.DatabaseException
com.sleepycat.db.DeadlockException
com.sleepycat.db.LockNotGrantedException
public class LockNotGrantedException
A LockNotGrantedException is thrown when a lock requested using the
Environment.getLock or Environment.lockVector
methods, where the noWait flag or lock timers were configured, could not
be granted before the wait-time expired.
Additionally, LockNotGrantedException is thrown when a Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
Additionally, LockNotGrantedException is thrown when lock or transaction timeouts have been configured and a database operation has timed out.
| Method Summary | |
|---|---|
|  int | getIndex()Returns -1 when Environment.getLockwas called, and
    returns the index of the failed LockRequest whenEnvironment.lockVectorwas called. | 
|  Lock | getLock()Returns null when Environment.getLockwas called, and
    returns the lock in the failed LockRequest whenEnvironment.lockVectorwas called. | 
|  int | getMode()Returns the mode parameter when Environment.getLockwas
    called, and returns the mode for the failed LockRequest whenEnvironment.lockVectorwas called. | 
|  DatabaseEntry | getObj()Returns the object parameter when Environment.getLockwas
    called, and returns the object for the failed LockRequest whenEnvironment.lockVectorwas called. | 
|  int | getOp()Returns 0 when Environment.getLockwas called, and returns
    the op parameter for the failed LockRequest whenEnvironment.lockVectorwas called. | 
| Methods inherited from class com.sleepycat.db.DatabaseException | 
|---|
| getEnvironment, getErrno, toString | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Method Detail | 
|---|
public int getIndex()
Environment.getLock was called, and
    returns the index of the failed LockRequest when Environment.lockVector was called.
public Lock getLock()
Environment.getLock was called, and
    returns the lock in the failed LockRequest when Environment.lockVector was called.
public int getMode()
Environment.getLock was
    called, and returns the mode for the failed LockRequest when
    Environment.lockVector was called.
public DatabaseEntry getObj()
Environment.getLock was
    called, and returns the object for the failed LockRequest when
    Environment.lockVector was called.
public int getOp()
Environment.getLock was called, and returns
    the op parameter for the failed LockRequest when Environment.lockVector was called.
| 
 | Berkeley DB version 5.3.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||