Small polishing and fixes

This commit is contained in:
Antonio Andelic
2021-11-16 16:12:38 +01:00
parent e8976e0f1c
commit 12f4e0068a
9 changed files with 60 additions and 1070 deletions

View File

@@ -1340,6 +1340,12 @@ class Message:
return self._message.timestamp()
def offset(self) -> int:
"""
Supported stream sources:
- Kafka
Raise InvalidArgumentError if the message is from an unsupported stream source.
"""
if not self.is_valid():
raise InvalidMessageError()
return self._message.offset()