类 NacosServiceName
- java.lang.Object
-
- org.apache.dubbo.registry.nacos.NacosServiceName
-
public class NacosServiceName extends Object
The service name of Nacos- 从以下版本开始:
- 2.7.3
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDEFAULT_PARAM_VALUEstatic StringNAME_SEPARATORstatic StringVALUE_SEPARATORstatic StringWILDCARD
-
构造器概要
构造器 构造器 说明 NacosServiceName()NacosServiceName(String value)NacosServiceName(URL url)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object o)StringgetCategory()StringgetGroup()StringgetServiceInterface()StringgetValue()StringgetVersion()inthashCode()booleanisCompatible(NacosServiceName concreteServiceName)booleanisConcrete()Is the concrete service name or notvoidsetCategory(String category)voidsetGroup(String group)voidsetServiceInterface(String serviceInterface)voidsetVersion(String version)StringtoString()static NacosServiceNamevalueOf(URL url)Build an instance ofNacosServiceName
-
-
-
方法详细资料
-
valueOf
public static NacosServiceName valueOf(URL url)
Build an instance ofNacosServiceName- 参数:
url-- 返回:
-
isConcrete
public boolean isConcrete()
Is the concrete service name or not- 返回:
- if concrete , return
true, orfalse
-
isCompatible
public boolean isCompatible(NacosServiceName concreteServiceName)
-
getCategory
public String getCategory()
-
setCategory
public void setCategory(String category)
-
getServiceInterface
public String getServiceInterface()
-
setServiceInterface
public void setServiceInterface(String serviceInterface)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getGroup
public String getGroup()
-
setGroup
public void setGroup(String group)
-
getValue
public String getValue()
-
-