Was it implemented for topic subscriptions because there is only one
consumer so you don't have to worry about synchronization between threads?
Is that the primary thing that will make implementing this for queues hard?

If so, why is it only available for durable subscriptions but not
non-durable ones?

Tim
On May 6, 2015 6:12 AM, "Gary Tully" <gary.tu...@gmail.com> wrote:

> that is true, the dispatch goes through the cursors in batches once
> memory (or the cursor cache) is exhausted.
> For durable subs, there is the ability to bypass the paged in messages,
> see:
>
> https://github.com/apache/activemq/blob/165959e25007271f8cdfdcf72641b9a92483ef40/activemq-unit-tests/src/test/java/org/apache/activemq/store/MessagePriorityTest.java#L83
>
> I know folks have asked for something similar for queue cursors. It
> would make a nice enhancement but may be tricky to get right.
>
> On 4 May 2015 at 19:14, Kevin Burton <bur...@spinn3r.com> wrote:
> > Let’s say you have a queue with 1M items.. they are all low priority.
> Then
> > you add a high priority entry.
> >
> > I believe, due to message cursors, that it won’t be executed until it’s
> > read into the “maxPageSize window”.
> >
> > Is this correct or does it depend on the underlying store?
> >
> > KahaDB and LevelDB could probably move it to the head (I think) but the
> > memory store can not...
> >
> > --
> >
> > Founder/CEO Spinn3r.com
> > Location: *San Francisco, CA*
> > blog: http://burtonator.wordpress.com
> > … or check out my Google+ profile
> > <https://plus.google.com/102718274791889610666/posts>
>

Reply via email to