Class MaxOfRateLimiter<T>
java.lang.Object
io.kubernetes.client.extended.workqueue.ratelimiter.MaxOfRateLimiter<T>
- All Implemented Interfaces:
RateLimiter<T>
MaxOfRateLimiter calls every RateLimiter and returns the worst case response When used with a
token bucket limiter, the burst could be apparently exceeded in cases where particular items were
separately delayed a longer time.
-
Constructor Summary
ConstructorsConstructorDescriptionMaxOfRateLimiter
(RateLimiter<T>... rateLimiters) MaxOfRateLimiter
(List<RateLimiter<T>> rateLimiters) -
Method Summary
-
Constructor Details
-
MaxOfRateLimiter
-
MaxOfRateLimiter
-
-
Method Details
-
when
Description copied from interface:RateLimiter
When gets an item and gets to decide how long that item should wait- Specified by:
when
in interfaceRateLimiter<T>
- Parameters:
item
- Item that should wait
-
forget
Description copied from interface:RateLimiter
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- Specified by:
forget
in interfaceRateLimiter<T>
- Parameters:
item
- Item will be forget
-
numRequeues
- Specified by:
numRequeues
in interfaceRateLimiter<T>
- Returns:
- number of how many failures the item has had
-