mfontanini / cppkafka

Modern C++ Apache Kafka client library (wrapper for librdkafka)
BSD 2-Clause "Simplified" License
587 stars 207 forks source link

How to set ttl? #304

Open Mike4Feet opened 1 year ago

Mike4Feet commented 1 year ago

When I wanna produce a message, how to set ttl of the message?

I can't find it in example.cpp

string line;
while (getline(cin, line)) {
    // Set the payload on this builder
    builder.payload(line);

    // Actually produce the message we've built
    producer.produce(builder);
}