public class MappingSocketAddressResolver extends SocketAddressResolver
SocketAddressResolverthat allows mapping of
RedisURIhost and port components to redirect connection endpoint coordinates using a
|Modifier and Type||Method and Description|
Create a new
public static MappingSocketAddressResolver create(DnsResolver dnsResolver, Function<HostAndPort,HostAndPort> mappingFunction)
dnsResolver- must not be null.
mappingFunction- must not be null.
public SocketAddress resolve(RedisURI redisURI)
redisURI- must not be null.
Copyright © 2019 lettuce.io. All rights reserved.