net.anotheria.portalkit.apis.asynctask.AsyncTaskAPI Maven / Gradle / Ivy
package net.anotheria.portalkit.apis.asynctask;
import net.anotheria.anoplass.api.API;
import net.anotheria.anoplass.api.APIException;
import net.anotheria.portalkit.apis.asynctask.task.AsyncTask;
import java.util.List;
public interface AsyncTaskAPI extends API {
/**
* Adds new async task to queue.
*
* @param asyncTask
* async task.
* @throws APIException
* if error occurs.
*/
void addTask(AsyncTask asyncTask) throws APIException;
/**
* Returns tasks to process.
*
* @param topicName - name of topic
* @return list of {@link AsyncTask}
* @throws APIException if error occurs
*/
List getTasks(String topicName) throws APIException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy