Berkeley DB: DbLockTab.get
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btr ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++

# DbLockTab.get

`

###

    import com.sleepycat.db.*;

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

# Description

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:

Db.DB_LOCK_NOWAIT
  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.)

# Class

DbLockTab

# See Also

DbLockTab.close, DbLockTab.detect, DbLockTab.get, DbLockTab.id, DbLockTab.open, DbLockTab.stat, DbLockTab.unlink and DbLockTab.vec.`