Enum KafkaRebalanceAnnotation
- java.lang.Object
-
- java.lang.Enum<KafkaRebalanceAnnotation>
-
- io.strimzi.api.kafka.model.balancing.KafkaRebalanceAnnotation
-
- All Implemented Interfaces:
Serializable,Comparable<KafkaRebalanceAnnotation>
public enum KafkaRebalanceAnnotation extends Enum<KafkaRebalanceAnnotation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description approveUsed to approve a rebalance proposal and trigger the actual rebalancing.noneNo annotation set on the rebalance resource.refreshUsed to refresh a ready rebalance proposal or to restart a stopped request for getting a rebalance proposal.stopUsed to stop a request for an actual ongoing rebalancing.unknownAny other unsupported/unknown annotation value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KafkaRebalanceAnnotationvalueOf(String name)Returns the enum constant of this type with the specified name.static KafkaRebalanceAnnotation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final KafkaRebalanceAnnotation none
No annotation set on the rebalance resource.
-
approve
public static final KafkaRebalanceAnnotation approve
Used to approve a rebalance proposal and trigger the actual rebalancing. This value should only be used when in theProposalReadystate.
-
stop
public static final KafkaRebalanceAnnotation stop
Used to stop a request for an actual ongoing rebalancing. This value should only be used when in theRebalancingstate.
-
refresh
public static final KafkaRebalanceAnnotation refresh
Used to refresh a ready rebalance proposal or to restart a stopped request for getting a rebalance proposal. This value should only be used when in theProposalReadyorStoppedstates.
-
unknown
public static final KafkaRebalanceAnnotation unknown
Any other unsupported/unknown annotation value.
-
-
Method Detail
-
values
public static KafkaRebalanceAnnotation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KafkaRebalanceAnnotation c : KafkaRebalanceAnnotation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KafkaRebalanceAnnotation 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 nameNullPointerException- if the argument is null
-
-