类 ServiceInfoUpdateService
java.lang.Object
com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService
- 所有已实现的接口:
com.alibaba.nacos.common.lifecycle.Closeable
public class ServiceInfoUpdateService
extends Object
implements com.alibaba.nacos.common.lifecycle.Closeable
Service information update service.
- 作者:
- xiweng.yy
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明ServiceInfoUpdateService
(com.alibaba.nacos.client.env.NacosClientProperties properties, ServiceInfoHolder serviceInfoHolder, NamingClientProxy namingClientProxy, InstancesChangeNotifier changeNotifier) -
方法概要
修饰符和类型方法说明void
scheduleUpdateIfAbsent
(String serviceName, String groupName, String clusters) Schedule update if absent.void
shutdown()
void
stopUpdateIfContain
(String serviceName, String groupName, String clusters) Stop to schedule update if contain task.
-
构造器详细资料
-
ServiceInfoUpdateService
public ServiceInfoUpdateService(com.alibaba.nacos.client.env.NacosClientProperties properties, ServiceInfoHolder serviceInfoHolder, NamingClientProxy namingClientProxy, InstancesChangeNotifier changeNotifier)
-
-
方法详细资料
-
scheduleUpdateIfAbsent
Schedule update if absent.- 参数:
serviceName
- service namegroupName
- group nameclusters
- clusters
-
stopUpdateIfContain
Stop to schedule update if contain task.- 参数:
serviceName
- service namegroupName
- group nameclusters
- clusters
-
shutdown
public void shutdown() throws com.alibaba.nacos.api.exception.NacosException- 指定者:
shutdown
在接口中com.alibaba.nacos.common.lifecycle.Closeable
- 抛出:
com.alibaba.nacos.api.exception.NacosException
-