Class VeniceAdaptiveIngestionThrottler

java.lang.Object
com.linkedin.venice.throttle.EventThrottler
com.linkedin.davinci.kafka.consumer.VeniceAdaptiveIngestionThrottler
All Implemented Interfaces:
VeniceRateLimiter

public class VeniceAdaptiveIngestionThrottler extends EventThrottler
  • Constructor Details

    • VeniceAdaptiveIngestionThrottler

      public VeniceAdaptiveIngestionThrottler(int signalIdleThreshold, long quotaPerSecond, long timeWindow, String throttlerName)
  • Method Details

    • maybeThrottle

      public void maybeThrottle(double eventsSeen)
      Description copied from class: EventThrottler
      Sleeps if necessary to slow down the caller.
      Overrides:
      maybeThrottle in class EventThrottler
      Parameters:
      eventsSeen - Number of events seen since last invocation. Basis for determining whether its necessary to sleep.
    • registerLimiterSignal

      public void registerLimiterSignal(BooleanSupplier supplier)
    • registerBoosterSignal

      public void registerBoosterSignal(BooleanSupplier supplier)
    • checkSignalAndAdjustThrottler

      public void checkSignalAndAdjustThrottler()