head 1.4; access; symbols RPM_4_2_1:1.1.1.1 RPM_4_2:1.1.1.1 RPM_4_1_1:1.1.1.1 RPM_4_0_5:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.4 date 2008.01.02.09.54.00; author rse; state dead; branches; next 1.3; commitid z4cpSiAhOCXk5PLs; 1.3 date 2003.08.24.12.43.14; author rse; state Exp; branches; next 1.2; 1.2 date 2003.08.24.12.33.49; author rse; state dead; branches; next 1.1; 1.1 date 2002.09.19.20.34.05; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.09.19.20.34.05; author rse; state Exp; branches; next ; desc @@ 1.4 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DbLockNotGrantedException |
![]() ![]() |
import com.sleepycat.db.*;public class DbLockNotGrantedException extends DbException { public int get_op(); public int get_mode(); public Dbt get_obj(); public DbLock get_lock(); public int get_index(); }
This manual page 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.lock_get or DbEnv.lock_vec methods (where the Db.DB_LOCK_NOWAIT option was specified), or by any Db operation performed in the context of a transaction begun using the Db.DB_TXN_NOWAIT option, is unable to be granted immediately.
The get_op method returns 0 when DbEnv.lock_get was called, and returns the op for the failed DbLockRequest when DbEnv.lock_vec was called.
The get_mode method returns the mode argument when DbEnv.lock_get was called, and returns the mode for the failed DbLockRequest when DbEnv.lock_vec was called.
The get_obj method returns the obj argument when DbEnv.lock_get was called, and returns the obj for the failed DbLockRequest when DbEnv.lock_vec was called.
The get_lock method returns null when DbEnv.lock_get was called, and returns the lock in the failed DbLockRequest when DbEnv.lock_vec was called.
The get_index method returns -1 when DbEnv.lock_get was called, and returns the index of the failed DbLockRequest when DbEnv.lock_vec was called.
![]() ![]() |
Copyright Sleepycat Software @ 1.3 log @Resolve: RPM 4.1 -> RPM 4.1.1 @ text @@ 1.2 log @Resolve: RPM 4.0.5 -> RPM 4.1 @ text @@ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import: RPM 4.0.5 @ text @@