类 MemoryProgressManager
java.lang.Object
cn.toutatis.xvoid.axolotl.manage.impl.MemoryProgressManager
- 所有已实现的接口:
ProgressManager
进度管理器
内存实现
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getProgress(String progressId) 获取进度。void初始化进度管理器,设置进度ID和总记录数。voidbooleanisFinished(String progressId) 检查进度是否已完成。voidupdateProgress(String progressId, int currentRecords) 更新进度,设置当前已处理的记录数。
-
字段详细资料
-
DEFAULT_CLEAN_INTERVAL
public static final int DEFAULT_CLEAN_INTERVAL默认清理间隔(分钟)- 另请参阅:
-
-
构造器详细资料
-
MemoryProgressManager
public MemoryProgressManager()
-
-
方法详细资料
-
initUnknownTotal
public void initUnknownTotal() -
init
从接口复制的说明:ProgressManager初始化进度管理器,设置进度ID和总记录数。 Initializes the progress manager with the specified progress ID and total number of records.- 指定者:
init在接口中ProgressManager- 参数:
progressId- 进度ID,用于唯一标识一个进度任务。 The progress ID used to uniquely identify a progress task.totalRecords- 总记录数,表示整个操作涉及的记录总数。 The total number of records, indicating the overall number of records involved in the operation.
-
updateProgress
从接口复制的说明:ProgressManager更新进度,设置当前已处理的记录数。 Updates the progress by specifying the current number of processed records.- 指定者:
updateProgress在接口中ProgressManager- 参数:
progressId- 进度ID,用于标识要更新的进度任务。 The progress ID identifying the progress task to be updated.currentRecords- 当前已处理的记录数,表示已经完成的记录数量。 The current number of processed records, indicating the completed number of records.
-
getProgress
从接口复制的说明:ProgressManager获取进度。- 指定者:
getProgress在接口中ProgressManager- 参数:
progressId- 进度ID,用于标识要更新的进度任务。 The progress ID identifying the progress task to be updated.- 返回:
- 当前进度。 The current progress.
-
isFinished
从接口复制的说明:ProgressManager检查进度是否已完成。 Checks if the progress has been completed.- 指定者:
isFinished在接口中ProgressManager- 参数:
progressId- 进度ID,用于标识要检查的进度任务。 The progress ID identifying the progress task to be checked.- 返回:
- true 如果进度已完成,否则为 false。 true if the progress has been completed, false otherwise.
-