Interface RateLimiter<T>
- All Known Implementing Classes:
BucketRateLimiter,DefaultControllerRateLimiter,ItemExponentialFailureRateLimiter,ItemFastSlowRateLimiter,MaxOfRateLimiter
public interface RateLimiter<T>
-
Method Summary
-
Method Details
-
when
When gets an item and gets to decide how long that item should wait- Parameters:
item- Item that should wait
-
forget
Forget indicates that an item is finished being retried. Doesn't matter whether its for perm failing or for success, we'll stop tracking it- Parameters:
item- Item will be forget
-
numRequeues
- Returns:
- number of how many failures the item has had
-