)I)Berkeley DB: DbLockTab.get[P

DbLockTab.get





import com.sleepycat.db.*;

@public DbLock get(int locker, int flags, Dbt obj, int lock_mode) throws DbException;





Description



qThe DbLockTab.get method gets a lock, as defined by the values of=locker, obj and mode. The locker?argument is an unsigned 32-bit integer quantity. It represents,the entity requesting or releasing the lock.

?The flags value must be set to 0 or the following value:

d

Db.DB_LOCK_NOWAIT
If a lock cannot be granted because the requested lock conflicts with anDexisting lock, return immediately instead of waiting for the lock tobecome available.


AA reference to the acquired lock is returned. (This reference iskinvalidated by any call to DbLock.put that releases the lock.)



Class

;DbLockTab



See Also

BDbLockTab.close,DDbLockTab.detect,>DbLockTab.get,<DbLockTab.id,@DbLockTab.open,@DbLockTab.stat,CDbLockTab.unlinkand>DbLockTab.vec.
ÿÿ