REPLACE AtomicProgress with simple ProgressTracker

This commit is contained in:
2025-07-23 00:18:25 +02:00
parent f6e6aae5c6
commit 618c140449
4 changed files with 27 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
package com.ddf.vodsystem.dto;
import lombok.Getter;
@Getter
public class ProgressTracker {
private float progress;
public ProgressTracker(float initialProgress) {
this.progress = initialProgress;
}
public void setProgress(float newProgress) {
if (newProgress < 0 || newProgress > 1) {
throw new IllegalArgumentException("Progress must be between 0 and 1");
}
this.progress = newProgress;
}
}