public class AlterLeadershipPrioritySpec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AlterLeadershipPrioritySpec.PriorityOperationEnum |
Constructor and Description |
---|
AlterLeadershipPrioritySpec(Set<Integer> brokerIds,
AlterLeadershipPrioritySpec.PriorityOperationEnum priorityOperationEnum,
String reason) |
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
brokerIds()
The list of brokers to alter leadership priority.
|
boolean |
equals(Object o) |
int |
hashCode() |
AlterLeadershipPrioritySpec.PriorityOperationEnum |
priorityOperation()
Whether to alter leadership priority by demoting (0) or promoting (1).
|
String |
reason()
An explanation for altering leadership priority.
|
String |
toString() |
public AlterLeadershipPrioritySpec(Set<Integer> brokerIds, AlterLeadershipPrioritySpec.PriorityOperationEnum priorityOperationEnum, String reason)
public String reason()
public AlterLeadershipPrioritySpec.PriorityOperationEnum priorityOperation()