Add support for fixed interval refill
See original GitHub issueIn opposite to smooth refill which adds token as soon as possible, interval refill should regenerate tokens periodically.
Proposed API:
public static Refill fixedInterval(long tokens, Duration period) {
// ...
}
public static Refill fixedInterval(Instant timeOfFirstRefill, long tokens, Duration period) {
// ...
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:16
Top Results From Across the Web
A Synchronized Prescription Refill Program Improved ...
Synchronizing refills might be a promising intervention to improve adherence to maintenance medications, especially among Medicare patients with low baseline ...
Read more >Prescription Refills, Part-Fills and Intervals - OCPInfo.com
Intervals are only required for refills of controlled drugs, but may be specified by the prescriber on any prescription, especially where drug monitoring...
Read more >SCRIPT Implementation Recommendations Document - NCPDP
ePrescribing Best Practices When the Patient requests the Pharmacist Send Refill Requests to a. Different Prescriber or the Pharmacy is ...
Read more >FREQUENTLY ASKED QUESTIONS
Partial refills of schedules III and IV controlled substance prescriptions are permissible under federal regulations provided that each partial filling is ...
Read more >Prescription of Controlled Substances: Benefits and Risks
Schedule III drugs are prescribable verbally over the phone, with a paper prescription, or via EPCS. Within a six-month time frame, refill ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The proposed API to specifying interval refill:
I am not sure that
withFixedRefillInterval
is best name for method(resilience4j useslimitRefreshPeriod
), feel free to propose more suitable.released https://github.com/vladimir-bukhtoyarov/bucket4j/releases/tag/4.0.0