Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Committing a Specific Offset#

Sumit Rawal answered on June 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Committing a Specific Offset#

0

So far we have seen how offsets can be committed synchronously or asynchronously. In both cases, we commit the offset after all the returned records have been processed. If we were to return a large number of records, though, we may want to commit the offset midway or at a time of our choosing. Fortunately, both the APIs commitSync() and commitAsync() allow us to do just that by passing-in the offset for each partition of a topic that we want to commit. A sample snippet appears below:


Popularity 1/10 Helpfulness 1/10 Language java
Source: Grepper
Tags: java
Link to this answer
Share Copy Link
Contributed on Jun 01 2023
Sumit Rawal
0 Answers  Avg Quality 2/10

Closely Related Answers



0

So far we have seen how offsets can be committed synchronously or asynchronously. In both cases, we commit the offset after all the returned records have been processed. If we were to return a large number of records, though, we may want to commit the offset midway or at a time of our choosing. Fortunately, both the APIs commitSync() and commitAsync() allow us to do just that by passing-in the offset for each partition of a topic that we want to commit. A sample snippet appears below:

Popularity 1/10 Helpfulness 1/10 Language java
Source: Grepper
Tags: java
Link to this answer
Share Copy Link
Contributed on Jun 01 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.