Skip to content

Commit 770beba

Browse files
authored
Merge pull request #1184 from DigitVE/adding-new-getter-for-offset-in-rdkafka
Added getter for offset field in RdKafkaConsumer class
2 parents 1ea3b44 + 1e71e9f commit 770beba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: RdKafkaConsumer.php

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public function setCommitAsync(bool $async): void
6666
$this->commitAsync = $async;
6767
}
6868

69+
public function getOffset(): ?int
70+
{
71+
return $this->offset;
72+
}
73+
6974
public function setOffset(int $offset = null): void
7075
{
7176
if ($this->subscribed) {

0 commit comments

Comments
 (0)