Enum Class ReplicationFactorChangeAction
java.lang.Object
java.lang.Enum<ReplicationFactorChangeAction>
org.apache.kafka.clients.admin.ReplicationFactorChangeAction
- All Implemented Interfaces:
Serializable, Comparable<ReplicationFactorChangeAction>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFallback for an action value this client does not recognize, e.g. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ReplicationFactorChangeAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
REPLICATION_FACTOR_CHANGE
-
CANCELLATION
-
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
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
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 nameNullPointerException- if the argument is null
-
toEnum
-