Package com.sleepycat.db
Class LockNotGrantedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sleepycat.db.DatabaseException
com.sleepycat.db.DeadlockException
com.sleepycat.db.LockNotGrantedException
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Returns -1 whenEnvironment.getLockwas called, and returns the index of the failed LockRequest whenEnvironment.lockVectorwas called.getLock()Returns null whenEnvironment.getLockwas called, and returns the lock in the failed LockRequest whenEnvironment.lockVectorwas called.intgetMode()Returns the mode parameter whenEnvironment.getLockwas called, and returns the mode for the failed LockRequest whenEnvironment.lockVectorwas called.getObj()Returns the object parameter whenEnvironment.getLockwas called, and returns the object for the failed LockRequest whenEnvironment.lockVectorwas called.intgetOp()Returns 0 whenEnvironment.getLockwas called, and returns the op parameter for the failed LockRequest whenEnvironment.lockVectorwas called.Methods inherited from class com.sleepycat.db.DatabaseException
getEnvironment, getErrno, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
getIndex
public int getIndex()Returns -1 whenEnvironment.getLockwas called, and returns the index of the failed LockRequest whenEnvironment.lockVectorwas called. -
getLock
Returns null whenEnvironment.getLockwas called, and returns the lock in the failed LockRequest whenEnvironment.lockVectorwas called. -
getMode
public int getMode()Returns the mode parameter whenEnvironment.getLockwas called, and returns the mode for the failed LockRequest whenEnvironment.lockVectorwas called. -
getObj
Returns the object parameter whenEnvironment.getLockwas called, and returns the object for the failed LockRequest whenEnvironment.lockVectorwas called. -
getOp
public int getOp()Returns 0 whenEnvironment.getLockwas called, and returns the op parameter for the failed LockRequest whenEnvironment.lockVectorwas called.
-