...
Once you have it up and running, use latencytest to make sure it is working. You should see latencies between 50 and 80us round trip.
> The TTL can be set in the message headers and the messages get dequeued if TTL expires.
Message TTL, auto expire
I need to be able to set time for a message that I send to be removed from the queue if it is not read by my subscriber. For example: I enqueue a message and I want it to be automatically dequeued after a certain amount of time has passed.Is there a feature like this in qpid?
yes, the TTL can be set in the message headers and the messages get dequeued if TTL expires
E.g. from c++:
Code Block |
---|
Message m("Hello World!");
m.getDeliveryProperties().setTtl(500);
|
Sets a 500 millisecond timeout.