public interface LimiterRampUpMBean
LimiterRampUpMBean
interface provides methods to configure ramp up of the "SystemInput" limiter.
Rate limiting is based on a concept of a maximum number of "tokens" per second (a rate) that Rhino can process.
The allowed Rate can grow from a smaller value up to the configured maximum to cater for cache-loading, Just-In-Time compilation effects, etc.Modifier and Type | Method and Description |
---|---|
void |
disableRampUp()
Disable incremental growth in the allowed rate of the SystemInput limiter and set the allowed rate to the maximum rate.
|
void |
enableRampUp(double startRate,
double rateIncrement,
int eventsPerIncrement)
Enable incremental growth in the allowed rate of the SystemInput limiter (Tip: ramp up will only be effective when the "SystemInput" limiter is not bypassed)
|
int |
getEventsPerIncrement()
Get the number of events which must be processed before Rhino will add "RateIncrement" to the allowed rate.
|
double |
getRateIncrement()
Get the amount added to the allowed rate if Rhino is successfully processing work.
|
double |
getStartRate()
Get the initial rate allowed by the SystemInput limiter.
|
boolean |
isEnabled()
Test if the ramp up is enabled.
|
int getEventsPerIncrement() throws ConfigurationException
ConfigurationException
boolean isEnabled() throws ConfigurationException
ConfigurationException
double getRateIncrement() throws ConfigurationException
ConfigurationException
double getStartRate() throws ConfigurationException
ConfigurationException
void enableRampUp(double startRate, double rateIncrement, int eventsPerIncrement) throws ConfigurationException
startRate
- the initial allowed rate, in tokens per timeunit (timeunit is configured in the systemInput limiter)rateIncrement
- incremental adjustment to the allowed rate. A positive number.eventsPerIncrement
- the number of events processed before the allowed rate is increasedConfigurationException
void disableRampUp() throws ConfigurationException
ConfigurationException