Berkeley DB: DbLockTab.get

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">


import com.sleepycat.db.*;

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


The 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:

If a lock cannot be granted because the requested lock conflicts with an existing lock, return immediately instead of waiting for the lock to become available.

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



See Also

DbLockTab.close, DbLockTab.detect, DbLockTab.get,,, DbLockTab.stat, DbLockTab.unlink and DbLockTab.vec.