You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2021/01/15 06:13:02 UTC
[dubbo-website] branch master updated: fix #707
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 97af52b fix #707
97af52b is described below
commit 97af52be6017c6f4eddc91ac345d90b44b5aeb40
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Fri Jan 15 14:11:57 2021 +0800
fix #707
---
content/en/docs/v2.7/dev/impls/router.md | 8 +++++++-
content/zh/docs/v2.7/dev/impls/router.md | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/content/en/docs/v2.7/dev/impls/router.md b/content/en/docs/v2.7/dev/impls/router.md
index 769eeff..3a26e02 100644
--- a/content/en/docs/v2.7/dev/impls/router.md
+++ b/content/en/docs/v2.7/dev/impls/router.md
@@ -18,6 +18,12 @@ Pick one from service providers and fire the invocation.
* `org.apache.dubbo.rpc.cluster.router.ScriptRouterFactory`
* `org.apache.dubbo.rpc.cluster.router.FileRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.condition.config.AppRouterFactory`
+* `org.apache.dubbo.rpc.cluster.CacheableRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.condition.ConditionRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.mock.MockRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.condition.config.ServiceRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.tag.TagRouterFactory`
## Extension Guide
@@ -48,7 +54,7 @@ import org.apache.dubbo.rpc.Invocation;
import org.apache.dubbo.rpc.RpcException;
public class XxxRouterFactory implements RouterFactory {
- public <T> List<Invoker<T>> select(List<Invoker<T>> invokers, Invocation invocation) throws RpcException {
+ public Router getRouter(URL url) {
// ...
}
}
diff --git a/content/zh/docs/v2.7/dev/impls/router.md b/content/zh/docs/v2.7/dev/impls/router.md
index b24541d..24d11d0 100644
--- a/content/zh/docs/v2.7/dev/impls/router.md
+++ b/content/zh/docs/v2.7/dev/impls/router.md
@@ -18,6 +18,12 @@ weight: 6
* `org.apache.dubbo.rpc.cluster.router.ScriptRouterFactory`
* `org.apache.dubbo.rpc.cluster.router.FileRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.condition.config.AppRouterFactory`
+* `org.apache.dubbo.rpc.cluster.CacheableRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.condition.ConditionRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.mock.MockRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.condition.config.ServiceRouterFactory`
+* `org.apache.dubbo.rpc.cluster.router.tag.TagRouterFactory`
## 扩展示例
@@ -48,7 +54,7 @@ import org.apache.dubbo.rpc.Invocation;
import org.apache.dubbo.rpc.RpcException;
public class XxxRouterFactory implements RouterFactory {
- public <T> List<Invoker<T>> select(List<Invoker<T>> invokers, Invocation invocation) throws RpcException {
+ public Router getRouter(URL url) {
// ...
}
}