Enum Class ReplicationFactorChangeAction

java.lang.Object
java.lang.Enum<ReplicationFactorChangeAction>
org.apache.kafka.clients.admin.ReplicationFactorChangeAction
All Implemented Interfaces:
Serializable, Comparable<ReplicationFactorChangeAction>, Constable

public enum ReplicationFactorChangeAction extends Enum<ReplicationFactorChangeAction>
The kind of operation a replication factor change entry represents, as returned by describeReplicationFactorChange(). It lets a caller tell apart an entry that tracks a requested replication factor change from one that tracks a cancellation of such a change. The possible values are: 1. REPLICATION_FACTOR_CHANGE - the entry describes a replication factor change request. 2. CANCELLATION - the entry describes a cancellation of a replication factor change. 3. UNKNOWN - clients fall back to this when they receive an unrecognized action value.
  • Enum Constant Details

    • REPLICATION_FACTOR_CHANGE

      public static final ReplicationFactorChangeAction REPLICATION_FACTOR_CHANGE
    • CANCELLATION

      public static final ReplicationFactorChangeAction CANCELLATION
    • UNKNOWN

      public static final ReplicationFactorChangeAction UNKNOWN
      Fallback for an action value this client does not recognize, e.g. a new action added by a newer server. It is not one of the two real kinds, so consumers must not assume anything about the entry's meaning when they see it.
  • Method Details

    • values

      public static ReplicationFactorChangeAction[] 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 ReplicationFactorChangeAction 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
    • toEnum

      public static ReplicationFactorChangeAction toEnum(String name)