Skip to content

Commit 38ecfe8

Browse files
authored
fix build doc (#612)
1 parent 34de949 commit 38ecfe8

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

src/main/java/com/qiniu/media/apis/ApiPrefop.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public String getPipeline() {
380380

381381
/**
382382
* 获取变量值
383-
* 如果没有,则表示通过 `api+fops` 命令提交的任务,否则遵循规则 `<source>: <source_id>`,其中 `<source>` 当前可选 `workflow` 或 `trigger`
383+
* 如果没有,则表示通过 `api+fops` 命令提交的任务,否则遵循规则 `{source}:{source_id}`,其中 `{source}` 当前可选 `workflow` 或 `trigger`
384384
*
385385
* @return taskFrom
386386
*/

src/main/java/com/qiniu/processing/OperationStatus.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class OperationStatus {
3333
/***
3434
* taskFrom
3535
* 1. 如果没有 taskFrom, 则表示是通过 api+fops命令 提交的任务, 否则见 2
36-
* 2. taskFrom 字段规则: <source>: <source_id>,其中 source 当前可选: workflow|trigger
36+
* 2. taskFrom 字段规则: {source}:{source_id},其中 source 当前可选: workflow|trigger
3737
**/
3838
public String taskFrom;
3939

src/main/java/com/qiniu/storage/Retry.java

+7
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public interface Interval {
9595

9696
/**
9797
* 重试时间间隔,单位:毫秒
98+
*
99+
* @return 重试时间间隔
98100
**/
99101
int interval();
100102
}
@@ -103,6 +105,11 @@ public interface RetryCondition {
103105

104106
/**
105107
* 是否需要重试
108+
*
109+
* @param request 请求
110+
* @param response 响应
111+
* @param exception 异常
112+
* @return 是否需要重试
106113
**/
107114
boolean shouldRetry(Api.Request request, Api.Response response, QiniuException exception);
108115
}

src/main/java/com/qiniu/util/UrlUtils.java

+4
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ public static URL parseHost(String host) {
210210
/**
211211
* 如果 host 包含 scheme 则优先使用 host 中包含的 scheme
212212
* 如果 host 不包含 scheme 则按照 useHttps 增加 scheme
213+
*
214+
* @param host 域名
215+
* @param useHttps 是否使用 https
216+
* @return 合成后的 url
213217
*/
214218
public static String setHostScheme(String host, boolean useHttps) {
215219
if (host == null || StringUtils.isNullOrEmpty(host)) {

0 commit comments

Comments
 (0)