Add enum for TopicPartition offsets

This commit is contained in:
Matias Fontanini
2016-06-15 07:32:22 -07:00
parent 74eb74785d
commit 6877c4be03
2 changed files with 11 additions and 0 deletions

View File

@@ -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
*/