Skip to content

How to set ttl? #304

@Mike4Feet

Description

@Mike4Feet

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions