Interface DelayingQueue<T>
- Type Parameters:
T
- item type
- All Superinterfaces:
WorkQueue<T>
- All Known Subinterfaces:
RateLimitingQueue<T>
- All Known Implementing Classes:
DefaultDelayingQueue
,DefaultRateLimitingQueue
Defines a queue that can add an item at a later time. This makes it easier to
requeue items after failures without ending up in a hot-loop.
The code has been copied from the official client and modified: DelayingQueue
-
Method Summary
-
Method Details
-
addAfter
Adds an item to the workqueue after the indicated duration has passed.- Parameters:
item
- item to addduration
- specific duration
-