# DbLock |

`

###

    import com.sleepycat.db.*;

    public class DbLock extends Object { ... }

# Description

The DbEnv lock methods and the DbLock class are used to provide general-purpose locking. While designed to work with the other Db classes, they are also useful for more general locking purposes. Locks can be shared between processes.

In most cases, when multiple threads or processes are using locking, the deadlock detector, db_deadlock should be run.

### Classes

DbEnv, DbLock

# See Also

DbEnv.set_lk_conflicts, DbEnv.set_lk_detect, DbEnv.set_lk_max, DbEnv.lock_detect, DbEnv.lock_get, DbEnv.lock_id, DbLock.put and DbEnv.lock_stat.`

Copyright Sleepycat Software