Interface AimdCapacityLimiterBuilder.StateObserver
- Enclosing class:
- AimdCapacityLimiterBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A state observer for AIMD
CapacityLimiter to monitor internal limit and consumption.-
Method Summary
Modifier and TypeMethodDescriptionvoidobserve(int limit, int consumed) Callback that gives access to internal state of the AIMDCapacityLimiter.
-
Method Details
-
observe
void observe(int limit, int consumed) Callback that gives access to internal state of the AIMDCapacityLimiter.- Parameters:
limit- The current limit (dynamically computed) of the limiter.consumed- The current consumption (portion of the limit) of the limiter.
-