Skip to content

Commit c0d8c22

Browse files
author
svnee
committed
feat(EasyFile): add doc
1 parent 8609539 commit c0d8c22

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

easyfile-spring-boot-starter/src/main/java/org/svnee/easyfile/starter/executor/ExecuteProcessProbe.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import org.svnee.easyfile.starter.executor.process.ExecuteProcessReporter;
77

88
/**
9-
* 执行进度探针
9+
* 执行进度探针。导出执行器上报入口
10+
*
1011
* 用于上报 异步下载时的进度。
1112
* 上报需要注意:由于使用{@link ThreadLocal} 做上下文上报器的传递。所以上报要求必须在执行器当前的主线程中调用{@link #report(Integer)}上报执行。
1213
*
@@ -22,16 +23,17 @@ private ExecuteProcessProbe() {
2223
}
2324

2425
/**
25-
* set reporter
26+
* set current reporter
27+
* 设置当前进度上报器
2628
*
27-
* @param reporter reporter
29+
* @param reporter reporter 执行进度上报器
2830
*/
2931
protected static void setCurrentReporter(ExecuteProcessReporter reporter) {
3032
CURRENT_REPORTER.set(reporter);
3133
}
3234

3335
/**
34-
* clear
36+
* 清空当前上报器
3537
*/
3638
protected static void clear() {
3739
try {

0 commit comments

Comments
 (0)