Package org.redisson.api
Class HostPortNatMapper
java.lang.Object
org.redisson.api.HostPortNatMapper
- All Implemented Interfaces:
NatMapper
Maps host and port of RedisURI object using map defined in
hostsMap
setting.- Author:
- Nikita Koksharov
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HostPortNatMapper
public HostPortNatMapper()
-
-
Method Details
-
map
Description copied from interface:NatMapper
Applies map function to inputuri
object -
setHostsPortMap
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
-