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

me.zhyd.hunter.enums.ExitWayEnum Maven / Gradle / Ivy

Go to download

博客猎手,基于webMagic的博客爬取工具,支持慕课、csdn、iteye、cnblogs、掘金和V2EX等各大主流博客平台。博客千万篇,版权第一条。狩猎不规范,亲人两行泪。

The newest version!
package me.zhyd.hunter.enums;

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @version 1.0
 */
public enum ExitWayEnum {
    /**
     * 默认方式,直到将所有匹配到的url抓取完成才会退出
     */
    DEFAULT("默认", 0),
    /*
     * 持续时间
     */
    DURATION("持续时间(s)", 60),
    /**
     * 抓取的条数
     */
    URL_COUNT("链接条数", 10);

    private String desc;
    private int defaultCount;

    ExitWayEnum(String desc, int defaultCount) {
        this.desc = desc;
        this.defaultCount = defaultCount;
    }

    public String getDesc() {
        return desc;
    }

    public int getDefaultCount() {
        return defaultCount;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy