Class LockRequestMode

java.lang.Object
com.sleepycat.db.LockRequestMode

public final class LockRequestMode extends Object
When using the default lock conflict matrix, the LockRequestMode class defines the set of possible lock modes.
  • Field Details

    • READ

      public static final LockRequestMode READ
      Read (shared).
    • WRITE

      public static final LockRequestMode WRITE
      Write (exclusive).
    • IWRITE

      public static final LockRequestMode IWRITE
      Intention to write (shared).
    • IREAD

      public static final LockRequestMode IREAD
      Intention to read (shared).
    • IWR

      public static final LockRequestMode IWR
      Intention to read and write (shared).
  • Constructor Details

    • LockRequestMode

      public LockRequestMode(String operationName, int flag)
      Construct a custom lock request mode.

      Parameters:
      operationName - Name used to display the mode

      flag - Flag value used as an index into the lock conflict matrix
  • Method Details