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.

@FunctionalInterface public interface NatMapper
Maps RedisURI object. Allows to change input RedisURI's port and host values.
Author:
Nikita Koksharov
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static NatMapper
    Returns input RedisURI object.
    Applies map function to input uri object
  • Method Details

    • 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