Enum Class FunctionRestorePolicy

java.lang.Object
java.lang.Enum<FunctionRestorePolicy>
redis.clients.jedis.args.FunctionRestorePolicy
All Implemented Interfaces:
Serializable, Comparable<FunctionRestorePolicy>, Constable, Rawable

public enum FunctionRestorePolicy extends Enum<FunctionRestorePolicy> implements Rawable
  • Enum Constant Details

    • FLUSH

      public static final FunctionRestorePolicy FLUSH
      Delete all existing libraries before restoring the payload
    • APPEND

      public static final FunctionRestorePolicy APPEND
      Append the restored libraries to the existing libraries and aborts on collision. This is the default policy.
    • REPLACE

      public static final FunctionRestorePolicy REPLACE
      Append the restored libraries to the existing libraries, replacing any existing ones in case of name collisions. Note that this policy doesn't prevent function name collisions, only libraries.
  • Field Details

    • raw

      private final byte[] raw
  • Constructor Details

    • FunctionRestorePolicy

      private FunctionRestorePolicy()
  • Method Details

    • values

      public static FunctionRestorePolicy[] 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 FunctionRestorePolicy 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
    • getRaw

      public byte[] getRaw()
      Description copied from interface: Rawable
      Get byte array.
      Specified by:
      getRaw in interface Rawable
      Returns:
      binary