us.codecraft.webmagic.Task Maven / Gradle / Ivy
The newest version!
package us.codecraft.webmagic;
/**
* Interface for identifying different tasks.
*
* @author [email protected]
* @since 0.1.0
* @see us.codecraft.webmagic.scheduler.Scheduler
* @see us.codecraft.webmagic.pipeline.Pipeline
*/
public interface Task {
/**
* unique id for a task.
*
* @return uuid
*/
public String getUUID();
/**
* site of a task
*
* @return site
*/
public Site getSite();
}