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
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: