I have a queue which i use to publish the status of the device.

The consumer will dequeue the status and send it to a central management
system at a configurable frequency. The publisher will publish a new
status only when there is a change in the device state.

In some circumstances the queue will contain multiple device messages
but only the most recent one is valid.

I was wondering whether there was a way to apply the following policy to
the queue  such that it only holds the most recent device status.

Can I limit the size of the queue to 1 message; the most recent one.

cheers
</jima>

Reply via email to