qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pela <mpela.ga...@gmail.com>
Subject Distinguish fresh messages in queue
Date Mon, 18 Nov 2013 17:09:42 GMT

I was wondering if there was a technical way for a Java client to understand
whether a message fetched from a queue is "fresh" or rather it was added to
the queue while the client was not connected? The reason is to distinguish a
/downloading/ phase where the client starts and reads all the existing
messages from the queue, thus re-synchronizing with the broker, followed by
a /running/ phase where it reads new messages as they come.

I understand you could rely on application-specific timestamps included in
each message, but a) it depends on the broker whether there is such a
timestamp in the message; b) it may need the client and broker clocks to be
aligned some way.

Any advice is welcome.


View this message in context: http://qpid.2158936.n2.nabble.com/Distinguish-fresh-messages-in-queue-tp7600878.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message