Class RemoteAddressKeyResolver

  • All Implemented Interfaces:
    KeyResolver

    public class RemoteAddressKeyResolver
    extends Object
    implements KeyResolver
    When address is used as the key, we can get the IP address from the header of the request. If there is no proxy before our service and gateway, we can use the remote address for the purpose.
    Author:
    Steve Hu
    • Constructor Detail

      • RemoteAddressKeyResolver

        public RemoteAddressKeyResolver()
    • Method Detail

      • resolve

        public String resolve​(LightLambdaExchange exchange)
        Description copied from interface: KeyResolver
        Resolve a unique key from the exchange
        Specified by:
        resolve in interface KeyResolver
        Parameters:
        exchange - lambda exchange
        Returns:
        A string for the key