Topic消息查询支持Timestamp排序,支持查询最新消息或最早消息 #534

This commit is contained in:
yanweiwen
2022-09-05 14:46:40 +08:00
parent 47065c8042
commit fa7ad64140
4 changed files with 56 additions and 2 deletions

View File

@@ -34,4 +34,11 @@ public class TopicRecordDTO extends BaseDTO {
@ApiModelProperty(value = "预览超时时间", example = "10000")
private Long pullTimeoutUnitMs = 8000L;
@ApiModelProperty(value = "排序", example = "desc")
private String sortType;
@ApiModelProperty(value = "offset", example = "latest")
private String filterOffsetReset;
}

View File

@@ -64,4 +64,17 @@ public class Constant {
public static final Float COLLECT_METRICS_ERROR_COST_TIME = -1.0F;
public static final Integer DEFAULT_RETRY_TIME = 3;
/**
* 排序
*/
public static final String ASC = "asc";
public static final String DESC = "desc";
/**
* 消费策略
*/
public static final String LATEST = "latest";
public static final String EARLIEST = "earliest";
}