Package com.netcetera.girders.ratelimit
Interface RateLimitKeyResolver
- All Known Implementing Classes:
ArgRateLimitKeyResolver
,RequestRateLimitKeyResolver
public interface RateLimitKeyResolver
Interface for resolving a rate limit key.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canResolve
(RateLimit rateLimit) Checks whether this key resolver support the given rate limit.Resolves a rate limit key for given join point and rate limit.
-
Method Details
-
canResolve
Checks whether this key resolver support the given rate limit.- Parameters:
rateLimit
- the rate limit- Returns:
true
if this resolver support the given rate limit;false
otherwise
-
resolve
Resolves a rate limit key for given join point and rate limit.- Parameters:
joinPoint
- the join pointrateLimit
- the rate limit- Returns:
- the resolved key
-