All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.schoolwow.download.domain.progress.DownloadProgress Maven / Gradle / Ivy

The newest version!
package cn.schoolwow.download.domain.progress;

import cn.schoolwow.download.domain.task.DownloadTask;

import java.util.concurrent.CountDownLatch;

/**
 * 下载进度
 * */
public class DownloadProgress {
    /**
     * 唯一标识
     * */
    public long id;

    /**
     * 当前状态
     */
    public String state = "等待运行";

    /**
     * 是否m3u8任务
     * */
    public boolean m3u8;

    /**
     * 目标文件
     */
    public String filePath;

    /**
     * 开始下载时间
     * */
    public long startTime;

    /**
     * 当前已下载大小
     */
    public long currentFileSize;

    /**
     * 当前已下载大小
     */
    public String currentFileSizeFormat = "-";

    /**
     * 文件总大小
     */
    public long totalFileSize;

    /**
     * 文件总大小
     */
    public String totalFileSizeFormat = "-";

    /**
     * 下载速度(kb/s)
     */
    public long downloadSpeed;

    /**
     * 下载速度(kb/s)
     */
    public String downloadSpeedFormat = "-";

    /**
     * 进度
     */
    public int percent;

    /**
     * 上次统计时间
     * */
    public long lastTime;

    /**
     * 上次已下载大小
     * */
    public long lastDownloadedFileSize;

    /**
     * 获取文件已下载大小
     * */
    public GetFileDownloadedSize getFileDownloadedSize;

    /**
     * 关联下载任务
     * */
    public DownloadTask downloadTask;

    /**
     * 关联后处理任务
     * */
    public CountDownLatch countDownLatch;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy