We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ab6fd commit 069ea6fCopy full SHA for 069ea6f
src/main/java/redis/clients/jedis/HostAndPortMapper.java
@@ -1,6 +1,17 @@
1
package redis.clients.jedis;
2
3
+/**
4
+ * An interface for mapping Redis node addresses.
5
+ * <p>
6
+ * It is used to translate an advertised server address to one that is reachable by the client,
7
+ * especially in network topologies involving NAT or containerization.
8
+ */
9
+@FunctionalInterface
10
public interface HostAndPortMapper {
11
12
+ /**
13
+ * @param hap The original address from the server.
14
+ * @return The translated, reachable address.
15
16
HostAndPort getHostAndPort(HostAndPort hap);
17
}
0 commit comments