Package com.sleepycat.db
Class LockDetectMode
java.lang.Object
com.sleepycat.db.LockDetectMode
Deadlock detection modes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LockDetectModeUse whatever lock policy was specified when the database environment was created.static final LockDetectModeReject lock requests which have timed out.static final LockDetectModeReject the lock request for the locker ID with the most locks.static final LockDetectModeReject the lock request for the locker ID with the most write locks.static final LockDetectModeReject the lock request for the locker ID with the fewest locks.static final LockDetectModeReject the lock request for the locker ID with the fewest write locks.static final LockDetectModeTurn off deadlock detection.static final LockDetectModeReject the lock request for the locker ID with the oldest lock.static final LockDetectModeReject the lock request for a random locker ID.static final LockDetectModeReject the lock request for the locker ID with the youngest lock. -
Method Summary
-
Field Details
-
NONE
Turn off deadlock detection. -
DEFAULT
Use whatever lock policy was specified when the database environment was created. If no lock policy has yet been specified, set the lock policy to DB_LOCK_RANDOM. -
EXPIRE
Reject lock requests which have timed out. No other deadlock detection is performed. -
MAXLOCKS
Reject the lock request for the locker ID with the most locks. -
MAXWRITE
Reject the lock request for the locker ID with the most write locks. -
MINLOCKS
Reject the lock request for the locker ID with the fewest locks. -
MINWRITE
Reject the lock request for the locker ID with the fewest write locks. -
OLDEST
Reject the lock request for the locker ID with the oldest lock. -
RANDOM
Reject the lock request for a random locker ID. -
YOUNGEST
Reject the lock request for the locker ID with the youngest lock.
-
-
Method Details