Interface KeyResolver
-
- All Known Implementing Classes:
AkamaiAddressKeyResolver,JwtClientIdKeyResolver,JwtHeaderClientIdKeyResolver,JwtUserIdKeyResolver,RemoteAddressKeyResolver
public interface KeyResolverWhen 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringresolve(LightLambdaExchange exchange)Resolve a unique key from the exchange
-
-
-
Method Detail
-
resolve
String resolve(LightLambdaExchange exchange)
Resolve a unique key from the exchange- Parameters:
exchange- lambda exchange- Returns:
- A string for the key
-
-