Class HostPortNatMapper

  • All Implemented Interfaces:
    NatMapper

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RedisURI map​(RedisURI uri)
      Applies map function to input uri object
      void <,​> hostsPortMap)
      Defines host and port mapping.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • 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​(<,​> 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