[Flashr] Priority Queue Question
Mario Klingemann
mario at quasimondo.com
Fri Sep 8 17:51:45 EDT 2006
Okay, looks like this here works:
_flashrQueue = FlashrRequestQueue.getInstance();
[...]
_flashrQueue.removeFromQueue( storedRequest ) ;
_flashrQueue.addToQueue( storedRequest , -1 ) ;
I think it would be nice to have something like:
_flashrQueue.setPriority( storedRequest , x ) ;
and
_flashrQueue.getLowestPriority();
Mario
Mario Klingemann schrieb:
> Looks like I'm blind, but I do not find the way how to change the
> priority of a request after I have sent it to the queue.
>
> What I want to achieve is that for example after I have sent off 50
> requests, I discover that the user wants to see request #25 first. So
> in that case I'd like to move request #25 to the front of the queue.
> I'd image to have something like a FlashrRequest.processNext() method.
>
> Or is the currently intended method to cancel the old request and then
> use a new one with executeAtPriority
> <#com.kelvinluck.flashr.core.Flashr.executeAtPriority>() ?
>
> Mario
> ------------------------------------------------------------------------
>
> _______________________________________________
> Flashr mailing list
> Flashr at osflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashr_osflash.org/attachments/20060908/6f740207/attachment.htm
More information about the Flashr
mailing list