Class DefaultControllerRateLimiter<T>
java.lang.Object
io.kubernetes.client.extended.workqueue.ratelimiter.DefaultControllerRateLimiter<T>
- All Implemented Interfaces:
RateLimiter<T>
DefaultControllerRateLimiter is a default rate limiter for workqueue. It has both overall and
per-item rate limiting. The overall is a token bucket and the per-item is exponential
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultControllerRateLimiter
public DefaultControllerRateLimiter()
-
-
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
-