TsgcWSPClient_KafkaMethods › CommitSync

CommitSync Method

Synchronously commits the current consumed offsets for the consumer group.

Syntax

procedure CommitSync;

Parameters

Remarks

Commits the offsets of the records consumed so far for the current consumer group and blocks until the broker acknowledges the commit. After a successful commit, a restarted consumer in the same group resumes from these offsets. Call this method after processing a batch of records when you want at-least-once delivery. To commit a single specific offset, use CommitOffset instead.

Example

oKafka.CommitSync;

Back to Methods