Class HostPortNatMapper

  • All Implemented Interfaces:
    NatMapper

    public class HostPortNatMapper
    extends Object
    implements NatMapper
    Maps host and port of RedisURI object using map defined in hostsMap setting.
    Author:
    Nikita Koksharov
    • Constructor Detail

      • HostPortNatMapper

        public HostPortNatMapper()
    • Method Detail

      • map

        public RedisURI map​(RedisURI uri)
        Description copied from interface: NatMapper
        Applies map function to input uri object
        Specified by:
        map in interface NatMapper
        Parameters:
        uri - - RedisURI object
        Returns:
        mapped RedisURI object
      • setHostsPortMap

        public void setHostsPortMap​(Map<String,​String> hostsPortMap)
        Defines host and port mapping. Host and port as key mapped to host and port as value. Allowed value format: "127.0.0.1:6379"
        Parameters:
        hostsPortMap - - host and port map