[ 
https://issues.apache.org/jira/browse/SLING-1862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928769#action_12928769
 ] 

Carsten Ziegeler commented on SLING-1862:
-----------------------------------------

I think this is a rather expensive operation - in addition it would block parts 
of the queue processing as the internal structures need to be synced/locked

You can achieve the same, by querying for all jobs with your desired topic, go 
through the collection (Iterator) you get and find the result by yourself. This 
gives you the possibility to query the position for a collection of items in 
one go.

> Add possibility to get position of a job inside a queue
> -------------------------------------------------------
>
>                 Key: SLING-1862
>                 URL: https://issues.apache.org/jira/browse/SLING-1862
>             Project: Sling
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Tobias Bocanegra
>
> would be good, if there was a possibility to determine the position of a job 
> within a queue.
> something like: 
> int Queue.getPosition(Event)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to