Enum RespExpiration

java.lang.Object
java.lang.Enum<RespExpiration>
org.infinispan.server.resp.operation.RespExpiration
All Implemented Interfaces:
Serializable, Comparable<RespExpiration>

public enum RespExpiration extends Enum<RespExpiration>
  • Enum Constant Details

  • Field Details

    • EXAT_BYTES

      public static final byte[] EXAT_BYTES
    • PXAT_BYTES

      public static final byte[] PXAT_BYTES
  • Method Details

    • values

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

      public static RespExpiration valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • convert

      protected abstract long convert(long value)
    • valueOf

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