查看topic分区消息偏移

This commit is contained in:
许晓东
2021-09-24 16:43:30 +08:00
parent e65eba9237
commit fd955d215c
5 changed files with 91 additions and 3 deletions

View File

@@ -23,6 +23,12 @@ public class TopicPartitionVO {
private List<String> isr;
private long beginOffset;
private long endOffset;
private long diff;
public static TopicPartitionVO from(TopicPartitionInfo partitionInfo) {
TopicPartitionVO partitionVO = new TopicPartitionVO();
partitionVO.setPartition(partitionInfo.partition());