Class LogtailerDestinationThrottles

java.lang.Object
com.illumon.iris.logtailer.LogtailerDestinationThrottles

public class LogtailerDestinationThrottles
extends Object
Class to configure and track per-destination throttle information. Some convenience methods are provided.
There should only be one instance of this class, constructed by the Tailer at startup.
  • Method Details

    • getThrottle

      @Nullable public TokenBucketThrottle getThrottle​(String destinationName)
      Get the global throttle for the destination name. Return null if the destination is missing or if the throttle is null.
      Parameters:
      destinationName - the destination identifier
      Returns:
      a TokenBucketThrottle or null