[
https://issues.apache.org/jira/browse/AMQ-5522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283960#comment-14283960
]
Gary Tully commented on AMQ-5522:
---------------------------------
maybe consider a broker plugin to implement this. intercept send and make use
of the destination statistics to access the queue depth. It would provide a
clean feature boundary and would allow some some scope in handing the full
signal.
> Limit the number of messages in individual queues instead of, or in addition
> to, limiting memory and store usage
> ----------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-5522
> URL: https://issues.apache.org/jira/browse/AMQ-5522
> Project: ActiveMQ
> Issue Type: New Feature
> Reporter: Arthur Naseef
> Priority: Minor
>
> Sometimes it is easier to administer and communicate broker limits using a
> maximum number of messages per queue rather than using memory and store
> percent usage.
> Being able to set the limit, in numbers of messages, would meet this need.
> It could be in place of, or (preferably) in addition to the existing memory
> and store usage limits. The effect would be the same - triggering producer
> flow control.
> See this discussion:
> http://activemq.2283324.n4.nabble.com/How-to-limit-queue-depth-by-msgs-td4689633.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)