重置消费位点

This commit is contained in:
许晓东
2021-10-22 17:22:26 +08:00
parent 11df2d016b
commit 36bb140c79
9 changed files with 164 additions and 7 deletions

View File

@@ -0,0 +1,36 @@
package com.xuxd.kafka.console.beans.dto;
import lombok.Data;
/**
* kafka-console-ui.
*
* @author xuxd
* @date 2021-10-22 16:21:28
**/
@Data
public class ResetOffsetDTO {
// 重置粒度1-> topic2->partition
private int level;
// 重置类型1-> earliest, 2-> latest 3-> timestamp
private int type;
private String groupId;
private String topic;
private int partition;
public interface Level {
int TOPIC = 1;
int PARTITION = 2;
}
public interface Type {
int EARLIEST = 1;
int LATEST = 2;
int TIMESTAMP = 3;
}
}