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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.redisson.misc.RedisURImap(org.redisson.misc.RedisURI uri) Applies map function to inputuriobjectvoidsetHostsPortMap(Map<String, String> hostsPortMap) Defines host and port mapping.
-
Constructor Details
-
HostPortNatMapper
public HostPortNatMapper()
-
-
Method Details
-
map
public org.redisson.misc.RedisURI map(org.redisson.misc.RedisURI uri) Description copied from interface:NatMapperApplies map function to inputuriobject -
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
-