public interface RateLimitingQueue<T> extends DelayingQueue<T>
Modifier and Type | Method and Description |
---|---|
void |
addRateLimited(T item)
addRateLimited adds an item to the workqueue after the rate limiter says its ok.
|
void |
forget(T item)
forget indicates that an item is finished being retried.
|
int |
numRequeues(T item)
numRequeues returns back how many times the item was requeued.
|
addAfter
void addRateLimited(T item)
item
- item to addvoid forget(T item)
item
- item which is finished being retriedint numRequeues(T item)
item
- specific itemCopyright © 2021. All rights reserved.