Package com.illumon.iris.logtailer
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.
There should only be one instance of this class, constructed by the Tailer at startup.
-
Method Summary
Modifier and Type Method Description TokenBucketThrottle
getThrottle(String destinationName)
Get the global throttle for the destination name.
-
Method Details
-
getThrottle
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
-