@SPI(value="default")
public interface ServiceNameMapping
extends org.apache.dubbo.common.lang.Prioritized
| 限定符和类型 | 方法和说明 |
|---|---|
default Set<String> |
get(String serviceInterface,
String group,
String version,
String protocol)
已过时。
2.7.8 This method will be removed since 3.0
|
Set<String> |
get(org.apache.dubbo.common.URL subscribedURL)
Get the service names from the subscribed Dubbo service
URL |
static ServiceNameMapping |
getDefaultExtension()
Get the default extension of
ServiceNameMapping |
default void |
map(String serviceInterface,
String group,
String version,
String protocol)
已过时。
2.7.8 This method will be removed since 3.0
|
void |
map(org.apache.dubbo.common.URL exportedURL)
Map the specified Dubbo service
URL to current Dubbo service name |
@Deprecated default void map(String serviceInterface, String group, String version, String protocol)
serviceInterface - the class name of Dubbo service interfacegroup - the group of Dubbo service interface (optional)version - the version of Dubbo service interface version (optional)protocol - the protocol of Dubbo service interface exported (optional)void map(org.apache.dubbo.common.URL exportedURL)
URL to current Dubbo service nameexportedURL - the URL that the Dubbo Provider exported@Deprecated default Set<String> get(String serviceInterface, String group, String version, String protocol)
serviceInterface - the class name of Dubbo service interfacegroup - the group of Dubbo service interface (optional)version - the version of Dubbo service interface version (optional)protocol - the protocol of Dubbo service interface exported (optional)SetSet<String> get(org.apache.dubbo.common.URL subscribedURL)
URLsubscribedURL - the URL that the Dubbo consumer subscribedSetstatic ServiceNameMapping getDefaultExtension()
ServiceNameMappingServiceNameMappingDynamicConfigurationServiceNameMappingCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.