Interface KeyResolver
- All Known Implementing Classes:
AkamaiAddressKeyResolver,JwtClientIdKeyResolver,JwtHeaderClientIdKeyResolver,JwtUserIdKeyResolver,RemoteAddressKeyResolver
public interface KeyResolver
When rate limit is used, we need to define a key to identify a unique client or a unique IP address.
The information can be from different places in the exchange, and we might need to combine several
strategies to get a unique key.
- Author:
- Steve Hu
-
Method Summary
Modifier and TypeMethodDescriptionresolve(LightLambdaExchange exchange) Resolve a unique key from the exchange
-
Method Details
-
resolve
Resolve a unique key from the exchange- Parameters:
exchange- lambda exchange- Returns:
- A string for the key
-