Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Penalty concept #78

Open
mustafabayar opened this issue Sep 4, 2018 · 5 comments
Open

Support for Penalty concept #78

mustafabayar opened this issue Sep 4, 2018 · 5 comments
Labels
Milestone

Comments

@mustafabayar
Copy link

mustafabayar commented Sep 4, 2018

Adding penalty concept for stopping or decreasing refill rate when some predefined condition met.
Example:

Bandwidth bandwith = Bandwith.simple(500, Duration.ofSeconds(1))
                                       .withPenalty(Condition.tokensLessThen(1), Penalty.freezeRefillFor(Duration.ofMillis(200)))

By the way this example is suggested by @vladimir-bukhtoyarov himself

@carjoshua
Copy link

+1 👍

@vladimir-bukhtoyarov
Copy link
Collaborator

Another use-case is described there #170

@vladimir-bukhtoyarov
Copy link
Collaborator

Design considerations:

  • Each bandwidth holds its own and independent collection of penalties.
  • It should be possible to configure multiple penalties for bandwidth.

@mjshahul-apptium
Copy link

mjshahul-apptium commented Mar 12, 2024

Hi @vladimir-bukhtoyarov, is this implementation available now?

@vladimir-bukhtoyarov
Copy link
Collaborator

vladimir-bukhtoyarov commented Mar 12, 2024

Hello @mjshahul-apptium

Nothing done, according this issue. ETA is not defined. At least this #410 and this #415 issues have more priority.

@vladimir-bukhtoyarov vladimir-bukhtoyarov added this to the 9.1.0 milestone Mar 31, 2024
@vladimir-bukhtoyarov vladimir-bukhtoyarov modified the milestones: 9.1.0, 9.x Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants