public class OutputRateCalculator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OutputRateCalculator.Mode |
| Constructor and Description |
|---|
OutputRateCalculator(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
MaxRateProvider maxRateProvider) |
| Modifier and Type | Method and Description |
|---|---|
OutputRateCalculationResult |
recalculateRate(SendCounters counters,
OutputRateCalculator.Mode currentMode,
double currentRateLimit) |
void |
shutdown() |
void |
start() |
void |
updateSubscription(pl.allegro.tech.hermes.api.Subscription newSubscription) |
public OutputRateCalculator(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
MaxRateProvider maxRateProvider)
public OutputRateCalculationResult recalculateRate(SendCounters counters, OutputRateCalculator.Mode currentMode, double currentRateLimit)
public void updateSubscription(pl.allegro.tech.hermes.api.Subscription newSubscription)
public void start()
public void shutdown()