public interface RateLimiter<T>
Modifier and Type | Method and Description |
---|---|
void |
forget(T item)
Forget indicates that an item is finished being retried.
|
int |
numRequeues(T item) |
Duration |
when(T item)
When gets an item and gets to decide how long that item should wait
|
Duration when(T item)
item
- Item that should waitvoid forget(T item)
item
- Item will be forgetint numRequeues(T item)
Copyright © 2020. All rights reserved.