## Uses of Class
com.sleepycat.db.LockDetectMode

Packages that use LockDetectMode
Package | Description
--- | ---
com.sleepycat.db | Berkeley DB Java API [reference guide] [Java programming notes].

### Uses of LockDetectMode in com.sleepycat.db

Fields in com.sleepycat.db declared as LockDetectMode
Modifier and Type | Field and Description
--- | ---
`static LockDetectMode` | LockDetectMode.`DEFAULT` Use whatever lock policy was specified when the database environment was created.
`static LockDetectMode` | LockDetectMode.`EXPIRE` Reject lock requests which have timed out.
`static LockDetectMode` | LockDetectMode.`MAXLOCKS` Reject the lock request for the locker ID with the most locks.
`static LockDetectMode` | LockDetectMode.`MAXWRITE` Reject the lock request for the locker ID with the most write locks.
`static LockDetectMode` | LockDetectMode.`MINLOCKS` Reject the lock request for the locker ID with the fewest locks.
`static LockDetectMode` | LockDetectMode.`MINWRITE` Reject the lock request for the locker ID with the fewest write locks.
`static LockDetectMode` | LockDetectMode.`NONE` Turn off deadlock detection.
`static LockDetectMode` | LockDetectMode.`OLDEST` Reject the lock request for the locker ID with the oldest lock.
`static LockDetectMode` | LockDetectMode.`RANDOM` Reject the lock request for a random locker ID.
`static LockDetectMode` | LockDetectMode.`YOUNGEST` Reject the lock request for the locker ID with the youngest lock.

Methods in com.sleepycat.db that return LockDetectMode
Modifier and Type | Method and Description
--- | ---
`LockDetectMode` | EnvironmentConfig.`getLockDetectMode()` Return true if the deadlock detector is configured to run whenever a lock conflict occurs.

Methods in com.sleepycat.db with parameters of type LockDetectMode
Modifier and Type | Method and Description
--- | ---
`int` | Environment.`detectDeadlocks(LockDetectMode mode)` Run one iteration of the deadlock detector.
`void` | EnvironmentConfig.`setLockDetectMode(LockDetectMode lockDetectMode)` Configure if the deadlock detector is to be run whenever a lock conflict occurs.