curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jor...@jordanzimmerman.com>
Subject Re: Uniqueness in the curator queue
Date Sun, 20 Oct 2013 16:38:34 GMT
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 <bs4mailinglist@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


Mime
View raw message