hornetq/hornetq — pull request #1539 by scop (2014-02-14 10:34:33+00:00)
Title: HORNETQ-910 - Honor given max rate in createConsumer from max rate <= 0 session

By the way, internalCreateProducer has similar code but it adds the TockenBucketLimiterImpl if maxRate != -1 whereas internalCreateConsumer does it if maxRate > 0; I assume these two should be synced, maybe using the latter approach (not done in this PR).