cn.schoolwow.download.module.task.service.StartDownloadCompositeBusiness Maven / Gradle / Ivy
package cn.schoolwow.download.module.task.service;
import cn.schoolwow.download.module.task.flow.download.*;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;
public class StartDownloadCompositeBusiness implements CompositeBusinessFlow {
@Override
public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
quickFlowExecutor
.next(new BeforeDownloadFlow())
.next(new ExecuteRequestFlow())
.next(new CheckFileDownloadedFlow())
.next(new DownloadDispatcherFlow())
.next(new CheckFileIntegrityFlow())
.next(new DownloadSuccessFlow());
}
@Override
public String name() {
return "开始下载链接";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy