接口 RegistryFactory
-
- 所有已知实现类:
AbstractRegistryFactory
,DubboRegistryFactory
,MulticastRegistryFactory
,RedisRegistryFactory
,ZookeeperRegistryFactory
@SPI("dubbo") public interface RegistryFactory
RegistryFactory. (SPI, Singleton, ThreadSafe)- 另请参阅:
AbstractRegistryFactory
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Registry
getRegistry(URL url)
Connect to the registry
-
-
-
方法详细资料
-
getRegistry
@Adaptive("protocol") Registry getRegistry(URL url)
Connect to the registryConnecting the registry needs to support the contract:
1. When the check=false is set, the connection is not checked, otherwise the exception is thrown when disconnection
2. Support username:password authority authentication on URL.
3. Support the backup=10.20.153.10 candidate registry cluster address.
4. Support file=registry.cache local disk file cache.
5. Support the timeout=1000 request timeout setting.
6. Support session=60000 session timeout or expiration settings.- 参数:
url
- Registry address, is not allowed to be empty- 返回:
- Registry reference, never return empty value
-
-