Enum Class SMB2OplockLevel

java.lang.Object
java.lang.Enum<SMB2OplockLevel>
com.hierynomus.mssmb2.SMB2OplockLevel
All Implemented Interfaces:
EnumWithValue<SMB2OplockLevel>, Serializable, Comparable<SMB2OplockLevel>, Constable

public enum SMB2OplockLevel extends Enum<SMB2OplockLevel> implements EnumWithValue<SMB2OplockLevel>
SMB2 oplock level — the single-byte RequestedOplockLevel (CREATE request) / OplockLevel (CREATE response) field ([MS-SMB2] 2.2.13 / 2.2.14). LEASE = 0xFF means "an RqLs lease create context is present".
  • Enum Constant Details

    • SMB2_OPLOCK_LEVEL_NONE

      public static final SMB2OplockLevel SMB2_OPLOCK_LEVEL_NONE
    • SMB2_OPLOCK_LEVEL_II

      public static final SMB2OplockLevel SMB2_OPLOCK_LEVEL_II
    • SMB2_OPLOCK_LEVEL_EXCLUSIVE

      public static final SMB2OplockLevel SMB2_OPLOCK_LEVEL_EXCLUSIVE
    • SMB2_OPLOCK_LEVEL_BATCH

      public static final SMB2OplockLevel SMB2_OPLOCK_LEVEL_BATCH
    • SMB2_OPLOCK_LEVEL_LEASE

      public static final SMB2OplockLevel SMB2_OPLOCK_LEVEL_LEASE
  • Method Details

    • values

      public static SMB2OplockLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SMB2OplockLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public long getValue()
      Specified by:
      getValue in interface EnumWithValue<SMB2OplockLevel>