You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Sznajder ForMailingList <bs...@gmail.com> on 2013/10/20 13:49:03 UTC
Uniqueness in the curator queue
Hi,
I would like to push an object Obj to the curator Queue without checking if
the object has already been pushed in the queue (for avoiding to have the
object consumed twice).
Can we be sure that the push(Object obj) keeps the uniqueness in the queue
(like in a Set for example). The object implements, obviously the equals()
and hash() methods.
Best regards
Benjamin
Re: Uniqueness in the curator queue
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
The Curator queue recipes don't support this behavior currently. Also, I think it's a bit of a mistake to think of the queue holding "objects". That implies some kind of serialized identity. The queues hold messages - i.e. data.
-Jordan
On Oct 20, 2013, at 4:49 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
> Hi,
>
> I would like to push an object Obj to the curator Queue without checking if the object has already been pushed in the queue (for avoiding to have the object consumed twice).
>
> Can we be sure that the push(Object obj) keeps the uniqueness in the queue (like in a Set for example). The object implements, obviously the equals() and hash() methods.
>
> Best regards
> Benjamin