Package org.redisson.api
Class HostNatMapper
java.lang.Object
org.redisson.api.HostNatMapper
- All Implemented Interfaces:
NatMapper
Maps host 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 inputuriobjectvoidsetHostsMap(Map<String, String> hostsMap) Defines hosts mapping.
-
Constructor Details
-
HostNatMapper
public HostNatMapper()
-
-
Method Details
-
map
public org.redisson.misc.RedisURI map(org.redisson.misc.RedisURI uri) Description copied from interface:NatMapperApplies map function to inputuriobject -
setHostsMap
Defines hosts mapping. Host as key mapped to host as value.- Parameters:
hostsMap- - hosts map
-