Skip to content

Commit

Permalink
fix build doc (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn authored Oct 31, 2024
1 parent 34de949 commit 38ecfe8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/qiniu/media/apis/ApiPrefop.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public String getPipeline() {

/**
* 获取变量值
* 如果没有,则表示通过 `api+fops` 命令提交的任务,否则遵循规则 `<source>: <source_id>`,其中 `<source>` 当前可选 `workflow` 或 `trigger`
* 如果没有,则表示通过 `api+fops` 命令提交的任务,否则遵循规则 `{source}:{source_id}`,其中 `{source}` 当前可选 `workflow` 或 `trigger`
*
* @return taskFrom
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/qiniu/processing/OperationStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class OperationStatus {
/***
* taskFrom
* 1. 如果没有 taskFrom, 则表示是通过 api+fops命令 提交的任务, 否则见 2
* 2. taskFrom 字段规则: <source>: <source_id>,其中 source 当前可选: workflow|trigger
* 2. taskFrom 字段规则: {source}:{source_id},其中 source 当前可选: workflow|trigger
**/
public String taskFrom;

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/qiniu/storage/Retry.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public interface Interval {

/**
* 重试时间间隔,单位:毫秒
*
* @return 重试时间间隔
**/
int interval();
}
Expand All @@ -103,6 +105,11 @@ public interface RetryCondition {

/**
* 是否需要重试
*
* @param request 请求
* @param response 响应
* @param exception 异常
* @return 是否需要重试
**/
boolean shouldRetry(Api.Request request, Api.Response response, QiniuException exception);
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/qiniu/util/UrlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ public static URL parseHost(String host) {
/**
* 如果 host 包含 scheme 则优先使用 host 中包含的 scheme
* 如果 host 不包含 scheme 则按照 useHttps 增加 scheme
*
* @param host 域名
* @param useHttps 是否使用 https
* @return 合成后的 url
*/
public static String setHostScheme(String host, boolean useHttps) {
if (host == null || StringUtils.isNullOrEmpty(host)) {
Expand Down

0 comments on commit 38ecfe8

Please sign in to comment.