Enum Class Config.BatchlogEndpointStrategy

java.lang.Object
java.lang.Enum<Config.BatchlogEndpointStrategy>
org.apache.cassandra.config.Config.BatchlogEndpointStrategy
All Implemented Interfaces:
Serializable, Comparable<Config.BatchlogEndpointStrategy>, Constable
Enclosing class:
Config

public static enum Config.BatchlogEndpointStrategy extends Enum<Config.BatchlogEndpointStrategy>
  • Enum Constant Details

  • Field Details

    • useDynamicSnitchScores

      public final boolean useDynamicSnitchScores
      If true, dynamic snitch response times will be used to select more responsive nodes to write the batchlog to. If false, nodes will be randomly selected.
    • preferLocalRack

      public final boolean preferLocalRack
      If true, one of the selected nodes will come from the local rack. If false, the local rack will not be used except as a last resort with no other racks available.
  • Method Details

    • values

      public static Config.BatchlogEndpointStrategy[] 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 Config.BatchlogEndpointStrategy 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