public interface ServiceRegistry
Modifier and Type | Method and Description |
---|---|
void |
clear()
清空所有服务
|
ServiceRegistryItem |
getServiceRegistryItem(Service service)
返回指定服务的服务注册信息
|
ServiceRegistryItem |
getServiceRegistryItem(String serviceId)
查找指定服务对应的注册项
|
Collection<ServiceRegistryItem> |
getServiceRegistryItems()
获取所有服务注册项
|
boolean |
isChange()
距离上次调用getServiceRegistryItems后,服务列表是否发生变化
|
void |
registerService(List<ServiceRegistryItem> serviceRegistryItems)
注册一批服务,重复注册时旧的被替换
|
void |
registerService(ServiceRegistryItem serviceRegistryItem)
注册服务,重复注册时旧的被替换
|
void |
registerService(ServiceRegistryItem[] serviceRegistryItems)
注册一批服务,重复注册时旧的被替换
|
void |
registerService(Set<ServiceRegistryItem> serviceRegistryItems)
注册一批服务,重复注册时旧的被替换
|
void |
removeService(String serviceId)
删除服务
|
void |
setChange(boolean b) |
int |
size()
返回注册服务个数
|
static final String BEAN_NAME
void registerService(ServiceRegistryItem serviceRegistryItem)
serviceRegistryItem
- ServiceRegistryItem getServiceRegistryItem(Service service)
service
- void registerService(List<ServiceRegistryItem> serviceRegistryItems)
serviceRegistryItems
- void registerService(ServiceRegistryItem[] serviceRegistryItems)
serviceRegistryItems
- void registerService(Set<ServiceRegistryItem> serviceRegistryItems)
serviceRegistryItems
- void removeService(String serviceId)
serviceId
- int size()
void clear()
ServiceRegistryItem getServiceRegistryItem(String serviceId)
serviceId
- Collection<ServiceRegistryItem> getServiceRegistryItems()
boolean isChange()
void setChange(boolean b)
Copyright © 2006–2018 TinyGroup. All rights reserved.