mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
Topic消息查询支持Timestamp排序,支持查询最新消息或最早消息 #534
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user