Skip to content

Commit 2ba7150

Browse files
authored
[ISSUE #98] OffsetOption for SyncLiteSubscriptionRequest (#99)
1 parent f2597b8 commit 2ba7150

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

apache/rocketmq/v2/definition.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,4 +596,19 @@ enum QueryOffsetPolicy {
596596

597597
// Use this option if time-based seek is targeted.
598598
TIMESTAMP = 2;
599+
}
600+
601+
message OffsetOption {
602+
oneof offset_type {
603+
Policy policy = 1;
604+
int64 offset = 2;
605+
int64 tail_n = 3;
606+
int64 timestamp = 4;
607+
}
608+
609+
enum Policy {
610+
LAST = 0;
611+
MIN = 1;
612+
MAX = 2;
613+
}
599614
}

apache/rocketmq/v2/service.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ message SyncLiteSubscriptionRequest {
329329
// lite subscription set of lite topics
330330
repeated string lite_topic_set = 4;
331331
optional int64 version = 5;
332+
optional OffsetOption offset_option = 6;
332333
}
333334

334335
message SyncLiteSubscriptionResponse {

0 commit comments

Comments
 (0)