-
Notifications
You must be signed in to change notification settings - Fork 193
[improve][site] Doc changes to support peekMessages with Offset in admin-api-topics #840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -522,6 +522,28 @@ admin.topics().peekMessages(topic, subName, numMessages); | |
|
||
</TabItem> | ||
|
||
</Tabs> | ||
```` | ||
### Peek messages with Offset | ||
|
||
You can also start to peek number of messages for a specific subscription of a given topic from a particular offset position in the following ways. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
````mdx-code-block | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add not just java? |
||
<Tabs groupId="api-choice" | ||
defaultValue="Java" | ||
values={[{"label":"Java","value":"Java"}]}> | ||
|
||
<TabItem value="Java"> | ||
|
||
```java | ||
String topic = "persistent://my-tenant/my-namespace/my-topic"; | ||
String subName = "my-subscription"; | ||
int numMessages = 5; | ||
int offset = 10; | ||
admin.topics().peekMessages(topic, subName, offset, numMessages); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
```` | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems you targeted 2.11.x file, but your PIP implementation is targeted at master which is 3.2, no?