Added support for message status and setting the event mask

This commit is contained in:
accelerated
2018-11-12 10:30:54 -05:00
parent 9f6556da0c
commit 9859e54522
4 changed files with 18 additions and 0 deletions

View File

@@ -187,6 +187,13 @@ public:
}
#endif
#if (RD_KAFKA_VERSION >= RD_KAFKA_MESSAGE_STATUS_SUPPORT_VERSION)
rd_kafka_msg_status_t get_status() const {
assert(handle_);
return rd_kafka_message_status(handle_.get());
}
#endif
/**
* \brief Indicates whether this message is valid (not null)
*/