类 MemoryProgressManager

java.lang.Object
cn.toutatis.xvoid.axolotl.manage.MemoryProgressManager
所有已实现的接口:
ProgressManager

public class MemoryProgressManager extends Object implements ProgressManager
  • 构造器详细资料

    • MemoryProgressManager

      public MemoryProgressManager()
  • 方法详细资料

    • init

      public void init(String progressId, int totalRecords)
      从接口复制的说明: 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

      public void updateProgress(String progressId, int currentRecords)
      从接口复制的说明: 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

      public Double getProgress(String progressId)
      从接口复制的说明: ProgressManager
      获取进度。
      指定者:
      getProgress 在接口中 ProgressManager
      参数:
      progressId - 进度ID,用于标识要更新的进度任务。 The progress ID identifying the progress task to be updated.
      返回:
      当前进度。 The current progress.
    • isFinished

      public boolean isFinished(String progressId)
      从接口复制的说明: 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.