[zeromq-dev] non-destructive queue iterator?
Michael Haberler
mail17 at mah.priv.at
Tue Aug 13 10:03:20 CEST 2013
Am 12.08.2013 um 02:36 schrieb Steven McCoy <steven.mccoy at miru.hk>:
> On 9 August 2013 13:43, Michael Haberler <mail17 at mah.priv.at> wrote:
> it's unclear how I would replicate the following queue usage:
>
> A queue of pending commands is checked periodically for limit violations; however, the queue entries are not consumed
>
> You may be able to simulate functionality with a broker, when you need to evaluate the inbound pending messages, simply consume every message from the broker and republish.
thanks, I think that would address the problem
I guess the broker would act as a kind of tap where the limit checker can tap into queued commands and will re-add them to the inbound queue until the head is seen again by the broker?
- Michael
>
> --
> Steve-o
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list