|
|||||||||
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.DbException
com.sleepycat.db.DbLockNotGrantedException
public class DbLockNotGrantedException
This information describes the DbLockNotGrantedException class and how it is used by the various Db* classes.
A DbLockNotGrantedException is thrown when a lock, requested using
the DbEnv.lockGet
or DbEnv.lockVector
methods, where
the Db.DB_LOCK_NOWAIT
option was specified, is unable to be granted immediately.
Constructor Summary | |
---|---|
protected |
DbLockNotGrantedException(java.lang.String message,
int op,
int mode,
Dbt obj,
DbLock lock,
int index,
DbEnv dbenv)
Constructor for the DbLockNotGrantedException object |
Method Summary | |
---|---|
int |
get_index()
Deprecated. As of Berkeley DB 4.2, replaced by getIndex() |
DbLock |
get_lock()
Deprecated. As of Berkeley DB 4.2, replaced by getLock() |
int |
get_mode()
Deprecated. As of Berkeley DB 4.2, replaced by getMode() |
Dbt |
get_obj()
Deprecated. As of Berkeley DB 4.2, replaced by getObj() |
int |
get_op()
Deprecated. As of Berkeley DB 4.2, replaced by getOp() |
int |
getIndex()
The getIndex method returns -1 when DbEnv.lockGet was called, and
returns the index of the failed DbLockRequest when DbEnv.lockVector was
called. |
DbLock |
getLock()
The getLock method returns null when DbEnv.lockGet was called, and
returns the lock in the failed DbLockRequest when
DbEnv.lockVector was
called. |
int |
getMode()
The getMode method returns the mode parameter when DbEnv.lockGet was
called, and returns the mode for the failed
DbLockRequest when DbEnv.lockVector was called. |
Dbt |
getObj()
The getObj method returns the mode parameter when returns the object parameter when DbEnv.lockGet was called, and
returns the object for the failed DbLockRequest when
DbEnv.lockVector was
called. |
int |
getOp()
The getOp method returns 0 when DbEnv.lockGet was called, and
returns the op for the failed DbLockRequest when DbEnv.lockVector was
called. |
Methods inherited from class com.sleepycat.db.DbException |
---|
get_errno, getDbEnv, 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 |
Constructor Detail |
---|
protected DbLockNotGrantedException(java.lang.String message, int op, int mode, Dbt obj, DbLock lock, int index, DbEnv dbenv)
message
- A description of the errorop
- The operation of the failed lock requestmode
- The mode of the failed lock requestobj
- The object of the failed lock requestlock
- The lock of the failed lock request
(lockVector only)index
- The index of the failed lock request
(lockVector only)dbenv
- The database environment where the exception
occurred.Method Detail |
---|
public int getIndex()
DbEnv.lockGet
was called, and
returns the index of the failed DbLockRequest when DbEnv.lockVector
was
called.
DbEnv.lockGet
was called,
and returns the index of the failed DbLockRequest when
DbEnv.lockVector
was called.public DbLock getLock()
DbEnv.lockGet
was called, and
returns the lock in the failed DbLockRequest when
DbEnv.lockVector
was
called.
DbEnv.lockGet
was called,
and returns the lock in the failed DbLockRequest
when DbEnv.lockVector
was called.public int getMode()
DbEnv.lockGet
was
called, and returns the mode for the failed
DbLockRequest when DbEnv.lockVector
was called.
DbEnv.lockGet
was called, and returns the mode for
the failed DbLockRequest when DbEnv.lockVector
was
called.public Dbt getObj()
DbEnv.lockGet
was called, and
returns the object for the failed DbLockRequest when
DbEnv.lockVector
was
called.
DbEnv.lockGet
was
called, and returns the object for the failed
DbLockRequest when DbEnv.lockVector
was called.public int getOp()
DbEnv.lockGet
was called, and
returns the op for the failed DbLockRequest when DbEnv.lockVector
was
called.
DbEnv.lockGet
was called,
and returns the op for the failed DbLockRequest
when DbEnv.lockVector
was called.public int get_index()
getIndex()
public DbLock get_lock()
getLock()
public int get_mode()
getMode()
public Dbt get_obj()
getObj()
public int get_op()
getOp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |