Class LockDetectMode

java.lang.Object
com.sleepycat.db.LockDetectMode

public final class LockDetectMode extends Object
Deadlock detection modes.
  • Field Details

    • NONE

      public static final LockDetectMode NONE
      Turn off deadlock detection.
    • DEFAULT

      public static final LockDetectMode 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

      public static final LockDetectMode EXPIRE
      Reject lock requests which have timed out. No other deadlock detection is performed.
    • MAXLOCKS

      public static final LockDetectMode MAXLOCKS
      Reject the lock request for the locker ID with the most locks.
    • MAXWRITE

      public static final LockDetectMode MAXWRITE
      Reject the lock request for the locker ID with the most write locks.
    • MINLOCKS

      public static final LockDetectMode MINLOCKS
      Reject the lock request for the locker ID with the fewest locks.
    • MINWRITE

      public static final LockDetectMode MINWRITE
      Reject the lock request for the locker ID with the fewest write locks.
    • OLDEST

      public static final LockDetectMode OLDEST
      Reject the lock request for the locker ID with the oldest lock.
    • RANDOM

      public static final LockDetectMode RANDOM
      Reject the lock request for a random locker ID.
    • YOUNGEST

      public static final LockDetectMode YOUNGEST
      Reject the lock request for the locker ID with the youngest lock.
  • Method Details