You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2021/06/25 03:09:06 UTC
[dubbo] branch 3.0 updated: [3.0] router add getter method (#8139)
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new d93db7a [3.0] router add getter method (#8139)
d93db7a is described below
commit d93db7aa388dac3fe2a4a1411c182fc2f49d6678
Author: ken.lj <ke...@gmail.com>
AuthorDate: Fri Jun 25 11:08:45 2021 +0800
[3.0] router add getter method (#8139)
---
.../src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java
index 23ae701..c37d63f 100644
--- a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java
+++ b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java
@@ -149,6 +149,10 @@ public class RouterChain<T> {
return routers;
}
+ public List<StateRouter> getStateRouters() {
+ return stateRouters;
+ }
+
private void sort() {
Collections.sort(routers);
}