接口 RouterFactory
-
- 所有已知实现类:
CacheableRouterFactory
@SPI public interface RouterFactoryRouterFactory. (SPI, Singleton, ThreadSafe)- 另请参阅:
org.apache.dubbo.rpc.cluster.Cluster#join(Directory),Note Router has a different behaviour since 2.7.0, for each type of Router, there will only has one Router instance for each service. See and for how to extend a new Router or how the Router instances are loaded.
-
-
方法详细资料
-
getRouter
@Adaptive("protocol") Router getRouter(org.apache.dubbo.common.URL url)Create router. Since 2.7.0, most of the time, we will not use @Adaptive feature, so it's kept only for compatibility.- 参数:
url- url- 返回:
- router instance
-
-