Class HostNatMapper

  • All Implemented Interfaces:
    NatMapper

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

      • HostNatMapper

        public HostNatMapper()
    • 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
      • setHostsMap

        public void setHostsMap​(Map<String,​String> hostsMap)
        Defines hosts mapping. Host as key mapped to host as value.
        Parameters:
        hostsMap - - hosts map