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.

@FunctionalInterface public static interface AimdCapacityLimiterBuilder.StateObserver
A state observer for AIMD CapacityLimiter to monitor internal limit and consumption.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    observe(int limit, int consumed)
    Callback that gives access to internal state of the AIMD CapacityLimiter.
  • Method Details

    • observe

      void observe(int limit, int consumed)
      Callback that gives access to internal state of the AIMD CapacityLimiter.
      Parameters:
      limit - The current limit (dynamically computed) of the limiter.
      consumed - The current consumption (portion of the limit) of the limiter.