Class ItemFastSlowRateLimiter<T>
java.lang.Object
io.kubernetes.client.extended.workqueue.ratelimiter.ItemFastSlowRateLimiter<T>
- All Implemented Interfaces:
RateLimiter<T>
ItemFastSlowRateLimiter does a quick retry for a certain number of attempts, then a slow retry
after that
-
Constructor Summary
ConstructorsConstructorDescriptionItemFastSlowRateLimiter
(Duration fastDelay, Duration slowDelay, int maxFastAttempts) -
Method Summary
-
Constructor Details
-
ItemFastSlowRateLimiter
-
-
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
-