Enum MigrateMode

java.lang.Object
java.lang.Enum<MigrateMode>
org.redisson.api.MigrateMode
All Implemented Interfaces:
Serializable, Comparable<MigrateMode>

public enum MigrateMode extends Enum<MigrateMode>
migrate mode
Author:
lyrric
  • Enum Constant Details

    • MIGRATE

      public static final MigrateMode MIGRATE
      Default migrate
    • COPY

      public static final MigrateMode COPY
      Do not remove the key from the local instance.
    • REPLACE

      public static final MigrateMode REPLACE
      Replace existing key on the remote instance.
    • COPY_AND_REPLACE

      public static final MigrateMode COPY_AND_REPLACE
      Do not remove the key from the local instance and replace existing key on the remote instance.
  • Method Details

    • values

      public static MigrateMode[] 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 MigrateMode 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