Limit the Rate of Flow Control with the Core API
19.1.2.1. Using Core API If the HornetQ core API is being used the rate can be set via the ClientSessionFactory.setConsumerMaxRate(int consumerMaxRate) method or alternatively via some of the ClientSession.createConsumer() methods.