com.jeramtough.jtcomponent.task.callback.TaskCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtcomponent Show documentation
Show all versions of jtcomponent Show documentation
It sealing some common component...
The newest version!
package com.jeramtough.jtcomponent.task.callback;
import com.jeramtough.jtcomponent.task.bean.TaskResult;
import com.jeramtough.jtcomponent.task.bean.PreTaskResult;
/**
* Created on 2019-01-24 22:18
* by @author JeramTough
*/
public interface TaskCallback extends RunningTaskCallback {
/**
* Calling when the task is preparing to start .
*/
void onTaskStart();
@Override
void onTaskRunning(PreTaskResult preTaskResult, int numerator, int denominator);
/**
* Calling while the task is completed.
*
* @param taskResult TaskResult bean
*/
void onTaskCompleted(TaskResult taskResult);
}