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) |
AlterLeadershipPrioritySpec(Set<Integer> brokerIds,
AlterLeadershipPrioritySpec.PriorityOperationEnum priorityOperationEnum,
String reason,
boolean force) |
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
brokerIds()
The list of brokers to alter leadership priority.
|
boolean |
equals(Object o) |
boolean |
force()
Whether the operation will be forced if the cluster has already reached the max number of brokers that can be demoted.
|
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 AlterLeadershipPrioritySpec(Set<Integer> brokerIds, AlterLeadershipPrioritySpec.PriorityOperationEnum priorityOperationEnum, String reason, boolean force)
public String reason()
public AlterLeadershipPrioritySpec.PriorityOperationEnum priorityOperation()
public boolean force()