mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 11:07:56 +00:00
Add enum for TopicPartition offsets
This commit is contained in:
@@ -40,6 +40,16 @@ namespace cppkafka {
|
||||
*/
|
||||
class TopicPartition {
|
||||
public:
|
||||
/**
|
||||
* Special offsets enum
|
||||
*/
|
||||
enum Offset {
|
||||
OFFSET_BEGINNING = -2,
|
||||
OFFSET_END = -1,
|
||||
OFFSET_STORED = -1000,
|
||||
OFFSET_INVALID = -1001
|
||||
};
|
||||
|
||||
/**
|
||||
* Default constructs a topic/partition
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user