File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
openmessaging-api/src/main/java/io/openmessaging/consumer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ public interface Stream extends ServiceLifecycle {
52
52
/**
53
53
* Creates a {@code MessageIterator} from the begin position of current stream.
54
54
*
55
- * @return the first offset, return -1 if the partition has no message .
55
+ * @return a message iterator at the begin position .
56
56
*/
57
57
MessageIterator begin ();
58
58
59
59
/**
60
60
* Creates a {@code MessageIterator} from the end position of current stream.
61
61
*
62
- * @return the last offset, return 0 if the iterator is first created .
62
+ * @return a message iterator at the begin position .
63
63
*/
64
64
MessageIterator end ();
65
65
@@ -74,6 +74,7 @@ public interface Stream extends ServiceLifecycle {
74
74
* is later than the last message's store timestamp in this stream.
75
75
*
76
76
* @param timestamp the specified timestamp
77
+ * @return a message iterator at the specified timestamp
77
78
*/
78
79
MessageIterator seekByTime (long timestamp );
79
80
}
You can’t perform that action at this time.
0 commit comments