public class RedisHostAndPort extends Object
public final String host
public final int port
public static RedisHostAndPort of(String host, int port)
host - the hostnameport - a valid portRedisHostAndPort of host and portpublic boolean hasPort()
public String getHost()
public int getPort()
Copyright © 2022 Alibaba Group. All rights reserved.