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) |
java.time.Duration |
when(T item)
When gets an item and gets to decide how long that item should wait
|
java.time.Duration when(T item)
item
- Item that should waitvoid forget(T item)
item
- Item will be forgetint numRequeues(T item)
Copyright © 2019. All rights reserved.