Enum ReadMode

java.lang.Object
java.lang.Enum<ReadMode>
org.redisson.config.ReadMode
All Implemented Interfaces:
Serializable, Comparable<ReadMode>, java.lang.constant.Constable

public enum ReadMode extends Enum<ReadMode>
Author:
Nikita Koksharov
  • Enum Constant Details

    • SLAVE

      public static final ReadMode SLAVE
      Read from slave nodes
    • MASTER

      public static final ReadMode MASTER
      Read from master node
    • MASTER_SLAVE

      public static final ReadMode MASTER_SLAVE
      Read from master and slave nodes
  • Method Details

    • values

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