Skip to content

Commit

Permalink
update wiki of configuration list
Browse files Browse the repository at this point in the history
  • Loading branch information
qdaxb committed Apr 25, 2016
1 parent 3242ffc commit ec06ff0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/wiki/zh_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@

\<motan:basicService/>

> protocol、basic service、extConfig、service中定义相同属性时,优先级为service > extConfig > basic service > protocol
| Property name | Type | Default | Comment |
|----------------|---------|-------------|--------------------------------------------------------------------------------------------------------------|
| export | String | | 服务暴露的方式,包含协议及端口号,多个协议端口用"," 分隔 |
Expand All @@ -81,9 +83,9 @@
| group | String | default_rpc | 服务分组 |
| version | String | 1.0 | 版本 |
| throwException | String | true | 抛出异常 |
| requestTimeout | String | 200 | 请求超时时间(毫秒) |
| connectTimeout | String | 1000 | 连接超时时间(毫秒) |
| retries | int | 0 | 重试次数 |
| requestTimeout | String | 200 | (目前未用)请求超时时间(毫秒) |
| connectTimeout | String | 1000 | (目前未用)连接超时时间(毫秒) |
| retries | int | 0 | (目前未用)重试次数 |
| filter | String | | 过滤器配置 |
| listener | String | | 监听器配置 |
| connections | int | | 连接数限制,0表示共享连接,否则为该服务独享连接数;默认共享 |
Expand All @@ -109,6 +111,8 @@

\<motan:basicReferer/>

> protocol、basic referer、extConfig、referer中定义相同属性时,优先级为referer > extConfig > basic referer > protocol
| Property name | Type | Default | Comment |
|----------------|---------|-------------|--------------------------------------------------------------------------------------------------------------|
| id | String | | 服务引用 BeanId |
Expand All @@ -131,7 +135,7 @@
| application | String | motan | 应用信息 |
| module | String | motan | 模块信息 |
| shareChannel | boolean | false | 是否共享channel |
| timeout | int | | 方法调用超时时间 |
| timeout | int | | (目前未用)方法调用超时时间 |
| actives | int | 0 | 最大请求数,0为不做并发限制 |
| async | boolean | false | 方法是否异步 |
| mock | String | false | 设为true,表示使用缺省Mock类名,即:接口名+Mock 后缀,服务接口调用失败Mock实现类 |
Expand All @@ -145,3 +149,12 @@
| codec | String | motan | 协议编码 |


\<motan:method/>
_需要定义在motan:referer内,用于控制某个函数的行为_

| Property name | Type | Default | Comment |
| ---------------- | --------- | ------------- | -------------------------------------------------------------------------------------------------------------- |
| name | String | | 函数名 |
| argumentTypes | String | | 参数类型(逗号分隔), 无参数用void. 如果方法无重载,则可不写 |
| requestTimeout | int | 200 | 请求超时时间(毫秒) |
| connectTimeout | int | 1000 | 连接超时时间(毫秒) |

0 comments on commit ec06ff0

Please sign in to comment.