File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
easyfile-spring-boot-starter/src/main/java/org/svnee/easyfile/starter/executor Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
import org .svnee .easyfile .starter .executor .process .ExecuteProcessReporter ;
7
7
8
8
/**
9
- * 执行进度探针
9
+ * 执行进度探针。导出执行器上报入口
10
+ *
10
11
* 用于上报 异步下载时的进度。
11
12
* 上报需要注意:由于使用{@link ThreadLocal} 做上下文上报器的传递。所以上报要求必须在执行器当前的主线程中调用{@link #report(Integer)}上报执行。
12
13
*
@@ -22,16 +23,17 @@ private ExecuteProcessProbe() {
22
23
}
23
24
24
25
/**
25
- * set reporter
26
+ * set current reporter
27
+ * 设置当前进度上报器
26
28
*
27
- * @param reporter reporter
29
+ * @param reporter reporter 执行进度上报器
28
30
*/
29
31
protected static void setCurrentReporter (ExecuteProcessReporter reporter ) {
30
32
CURRENT_REPORTER .set (reporter );
31
33
}
32
34
33
35
/**
34
- * clear
36
+ * 清空当前上报器
35
37
*/
36
38
protected static void clear () {
37
39
try {
You can’t perform that action at this time.
0 commit comments