Throtteling and dynamically changing MaxRequestsPerPeriod via Bean

2015-04-17 Thread Alex Cali
I would like to change the MaxRequestsPerPeriod inside a Throttler. I would like to use spring and having such a simple route, with some beans. snip bean id=hello class=example.HelloImpl/ bean id=endMe class=example.EndMe / bean id=configurationSource class=example.ConfigurationSource

Re: Throtteling and dynamically changing MaxRequestsPerPeriod via Bean

2015-04-17 Thread Alex Cali
The bean should return a number 0, the class is fairly simple: public class ConfigurationSource { private long messagesPerSecond = 10; public long getMessagesPerSecond() { return messagesPerSecond; } } Alex -- View this message in context: