This is an automated email from the ASF dual-hosted git repository.

wangxin pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 57827a4  Update the user docs to fix the wrong description of sticky 
connection. (#189)
57827a4 is described below

commit 57827a4f1c02848516af469274984883c64d037c
Author: 田小波 <tianxiaobo....@outlook.com>
AuthorDate: Tue Nov 27 13:03:33 2018 +0800

    Update the user docs to fix the wrong description of sticky connection. 
(#189)
---
 docs/en-us/user/demos/stickiness.md |  9 ++++++++-
 docs/zh-cn/user/demos/stickiness.md | 10 +++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/docs/en-us/user/demos/stickiness.md 
b/docs/en-us/user/demos/stickiness.md
index 37d615d..5db39b3 100644
--- a/docs/en-us/user/demos/stickiness.md
+++ b/docs/en-us/user/demos/stickiness.md
@@ -5,6 +5,13 @@ Sticky connections are used for stateful services, as much as 
possible so that c
 Sticky connections will automatically open [Delayed 
Connections](./lazy-connect.md) to reduce the number of long connections.
 
 ```xml
-<dubbo:protocol name="dubbo" sticky="true" />
+<dubbo:reference id="xxxService" interface="com.xxx.XxxService" sticky="true" 
/>
 ```
 
+Dubbo supports method-level sticky connection, and if you want more granular 
control, you can also configure as follow.
+
+```xml
+<dubbo:reference id="xxxService" interface="com.xxx.XxxService">
+    <dubbo:mothod name="sayHello" sticky="true" />
+</dubbo:reference>
+```
diff --git a/docs/zh-cn/user/demos/stickiness.md 
b/docs/zh-cn/user/demos/stickiness.md
index 24a77df..9eef8f2 100644
--- a/docs/zh-cn/user/demos/stickiness.md
+++ b/docs/zh-cn/user/demos/stickiness.md
@@ -5,6 +5,14 @@
 粘滞连接将自动开启[延迟连接](./lazy-connect.md),以减少长连接数。
 
 ```xml
-<dubbo:protocol name="dubbo" sticky="true" />
+<dubbo:reference id="xxxService" interface="com.xxx.XxxService" sticky="true" 
/>
+```
+
+Dubbo 支持方法级别的粘滞连接,如果你想进行更细力度的控制,还可以这样配置。
+
+```xml
+<dubbo:reference id="xxxService" interface="com.xxx.XxxService">
+    <dubbo:mothod name="sayHello" sticky="true" />
+</dubbo:reference>
 ```
 

Reply via email to