public class NewPartitions extends Object
Constructor and Description |
---|
NewPartitions()
Constructor
|
NewPartitions(int totalCount,
List<List<Integer>> newAssignments)
Constructor
|
NewPartitions(JsonObject json)
Constructor (from JSON representation)
|
Modifier and Type | Method and Description |
---|---|
List<List<Integer>> |
getNewAssignments() |
int |
getTotalCount() |
void |
NewPartitions(int totalCount)
Constructor
|
NewPartitions |
setNewAssignments(List<List<Integer>> assignments)
Set the assignment for the new partitions
|
NewPartitions |
setTotalCount(int totalCount)
Set the number of partitions for the topic
|
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public NewPartitions()
public NewPartitions(int totalCount, List<List<Integer>> newAssignments)
totalCount
- total count of partitionsnewAssignments
- assignment to the brokerspublic NewPartitions(JsonObject json)
json
- JSON representationpublic void NewPartitions(int totalCount)
totalCount
- total count of partitionspublic NewPartitions setTotalCount(int totalCount)
totalCount
- the number of partitions for the topicpublic NewPartitions setNewAssignments(List<List<Integer>> assignments)
assignments
- assignments of the partitions to the brokerspublic int getTotalCount()
public List<List<Integer>> getNewAssignments()
public JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.