Enum Class ReplicationFactorChangeStatus
java.lang.Object
java.lang.Enum<ReplicationFactorChangeStatus>
org.apache.kafka.clients.admin.ReplicationFactorChangeStatus
- All Implemented Interfaces:
Serializable, Comparable<ReplicationFactorChangeStatus>, Constable
The status of a replication factor change for a single topic, as returned by
describeReplicationFactorChange().
A replication factor change can be in one of the following statuses:
1. PENDING - the change was accepted but processing has not started yet. This can last
for the balancer's metrics-collection window (tens of minutes); it does not affect the
timeout on the admin request itself.
2. IN_PROGRESS - the reassignment has been submitted to Kafka and replicas are moving.
3. COMPLETED - the change completed successfully for the topic.
4. FAILED - the change was aborted (cancellation, deleted topic, broker down,
invalid request, placement constraints, etc.).
5. UNKNOWN - clients fall back to this when they receive an unrecognized status value.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFallback for a status value this client does not recognize, e.g. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ReplicationFactorChangeStatus[]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
-
PENDING
-
IN_PROGRESS
-
COMPLETED
-
FAILED
-
UNKNOWN
Fallback for a status value this client does not recognize, e.g. a new status added by a newer server. It is not one of the four real states and is neither success nor failure, so consumers must treat it as non-terminal (keep polling) rather than concluding the change is done.
-
-
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
-