BucketStateMap

interface BucketStateMap

Interface the provides a map implementation to store the state of the rate limiter.

Inheritors

Functions

Link copied to clipboard

Returns the AtomicReference of the BucketState for the given key. If the key is not present in the map, it returns null.

Link copied to clipboard

Puts the value in the map if the key is not present. If the key is already present, it returns the AtomicReference of the BucketState for the given key. If the key is not present in the map, it returns null.