Interface KeyFilter<R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface to retrieve the Bucket4j key. The key is used to identify the Bucket4j storage.
-
Method Summary
Modifier and TypeMethodDescriptionkey(ExpressionParams<R> expressionParams) Return the unique Bucket4j storage key.
-
Method Details
-
key
Return the unique Bucket4j storage key. You can think of the key as a unique identifier which is for example an IP-Address or a username. The rate limit is then applied to each individual key.- Parameters:
expressionParams- the expression params- Returns:
- the key to identify the rate limit (IP, username, ...)
-