Interface NatMapper

  • All Known Implementing Classes:
    DefaultNatMapper, HostNatMapper, HostPortNatMapper
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface NatMapper
    Maps RedisURI object. Allows to change input RedisURI's port and host values.
    Author:
    Nikita Koksharov
    See Also:
    HostNatMapper, HostPortNatMapper
    • Method Detail

      • map

        RedisURI map​(RedisURI uri)
        Applies map function to input uri object
        Parameters:
        uri - - RedisURI object
        Returns:
        mapped RedisURI object
      • direct

        static NatMapper direct()
        Returns input RedisURI object. Used by default
        Returns:
        NatMapper instance what returns input RedisURI object