接口 WritableMetadataService
-
- 所有超级接口:
MetadataService
@SPI("default") public interface WritableMetadataService extends MetadataServiceLocalMetadataServicethat extendsMetadataServiceand provides the modification, which is used for Dubbo's consumers and providers.- 从以下版本开始:
- 2.7.5
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.metadata.MetadataService
ALL_SERVICE_INTERFACES, ALL_SERVICE_NAMES, DEFAULT_EXTENSION, SERVICE_INTERFACE_NAME, VERSION
-
-
方法概要
所有方法 静态方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 booleanexportURL(org.apache.dubbo.common.URL url)Exports aURLstatic WritableMetadataServicegetDefaultExtension()Getthe defautl extensionofWritableMetadataServicevoidpublishServiceDefinition(org.apache.dubbo.common.URL providerUrl)default StringserviceName()Gets the current Dubbo Service namebooleansubscribeURL(org.apache.dubbo.common.URL url)Subscribes aURLbooleanunexportURL(org.apache.dubbo.common.URL url)Unexports aURLbooleanunsubscribeURL(org.apache.dubbo.common.URL url)Unsubscribes aURL-
从接口继承的方法 org.apache.dubbo.metadata.MetadataService
exportServiceDiscoveryMetadata, getAndListenServiceDiscoveryMetadata, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getMetadataChangeListenerMap, getMetadataInfo, getMetadataInfos, getServiceDefinition, getServiceDefinition, getSubscribedURLs, version
-
-
-
-
方法详细资料
-
serviceName
default String serviceName()
Gets the current Dubbo Service name- 指定者:
serviceName在接口中MetadataService- 返回:
- non-null
-
exportURL
boolean exportURL(org.apache.dubbo.common.URL url)
Exports aURL- 参数:
url- aURL- 返回:
- If success , return
true
-
unexportURL
boolean unexportURL(org.apache.dubbo.common.URL url)
Unexports aURL- 参数:
url- aURL- 返回:
- If success , return
true
-
subscribeURL
boolean subscribeURL(org.apache.dubbo.common.URL url)
Subscribes aURL- 参数:
url- aURL- 返回:
- If success , return
true
-
unsubscribeURL
boolean unsubscribeURL(org.apache.dubbo.common.URL url)
Unsubscribes aURL- 参数:
url- aURL- 返回:
- If success , return
true
-
publishServiceDefinition
void publishServiceDefinition(org.apache.dubbo.common.URL providerUrl)
-
getDefaultExtension
static WritableMetadataService getDefaultExtension()
Getthe defautl extensionofWritableMetadataService- 返回:
- non-null
-
-