接口的使用
com.alibaba.nacos.client.env.NacosClientProperties
使用NacosClientProperties的程序包
-
com.alibaba.nacos.client.address中NacosClientProperties的使用
修饰符和类型方法说明voidAbstractServerListProvider.init(NacosClientProperties properties, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate) voidEndpointServerListProvider.init(NacosClientProperties properties, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate) voidPropertiesListProvider.init(NacosClientProperties properties, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate) voidServerListProvider.init(NacosClientProperties properties, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate) Init.booleanEndpointServerListProvider.match(NacosClientProperties properties) booleanPropertiesListProvider.match(NacosClientProperties properties) booleanServerListProvider.match(NacosClientProperties properties) Match.voidEndpointServerListProvider.startRefreshServerListTask(NacosClientProperties properties) Start refresh server list task.限定符构造器说明AbstractServerListManager(NacosClientProperties properties) AbstractServerListManager(NacosClientProperties properties, String namespace) -
com.alibaba.nacos.client.env中NacosClientProperties的使用
修饰符和类型字段说明static final NacosClientPropertiesNacosClientProperties.PROTOTYPEall the NacosClientProperties object must be created by PROTOTYPE, so child NacosClientProperties can read properties from the PROTOTYPE. it looks like this: |-PROTOTYPE----------------> ip=127.0.0.1 |---|-child1---------------> port=6379 if you search key called "port" from child1, certainly you will get 6379 if you search key called "ip" from child1, you will get 127.0.0.1. because the child can read properties from parent NacosClientProperties修饰符和类型方法说明NacosClientProperties.derive()create a new NacosClientProperties which scope is itself.NacosClientProperties.derive(Properties properties) create a new NacosClientProperties from NacosClientProperties#PROTOTYPE and init. -
com.alibaba.nacos.client.utils中NacosClientProperties的使用
修饰符和类型方法说明static StringClientBasicParamUtil.parseNamespace(NacosClientProperties properties) Parse namespace from properties and environment.