public class NacosServiceDiscovery extends Object implements ServiceDiscovery
ServiceDiscovery implementationServiceDiscoveryCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| 构造器和说明 |
|---|
NacosServiceDiscovery() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
destroy() |
List<ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices() |
void |
initialize(URL registryURL) |
void |
register(ServiceInstance serviceInstance) |
void |
unregister(ServiceInstance serviceInstance) |
void |
update(ServiceInstance serviceInstance) |
dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getInstances, getInstances, getInstances, toStringcompareTo, getPrioritypublic void initialize(URL registryURL) throws Exception
initialize 在接口中 ServiceDiscoveryExceptionpublic void destroy()
destroy 在接口中 ServiceDiscoverypublic void register(ServiceInstance serviceInstance) throws RuntimeException
register 在接口中 ServiceDiscoveryRuntimeExceptionpublic void update(ServiceInstance serviceInstance) throws RuntimeException
update 在接口中 ServiceDiscoveryRuntimeExceptionpublic void unregister(ServiceInstance serviceInstance) throws RuntimeException
unregister 在接口中 ServiceDiscoveryRuntimeExceptionpublic Set<String> getServices()
getServices 在接口中 ServiceDiscoverypublic List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
getInstances 在接口中 ServiceDiscoveryNullPointerExceptionpublic void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.