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

com.jeramtough.jtcomponent.task.callback.TaskCallback Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy