Skip to content

evest-io/Simple-Rate-Limiter

Repository files navigation

SimpleRateLimit

This is a simple rate limiting library for managing API requests.

Installation

<dependency>
    <groupId>io.evest</groupId>
    <artifactId>simple-rate-limiter</artifactId>
    <version>0.0.3</version>
</dependency>
implementation("io.evest:simple-rate-limiter:0.0.3")

Usage

  Any()
    .tryBucket("1", 2, Duration.ofSeconds(1))
    .{ e ->
        ...
    }

Configuration

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages