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

fr.whimtrip.ext.jwhtscrapper.enm.PausingBehavior Maven / Gradle / Ivy

The newest version!
package fr.whimtrip.ext.jwhtscrapper.enm;

import fr.whimtrip.ext.jwhtscrapper.annotation.RequestsConfig;

/**
 * 

Part of project jwht-scrapper

*

Created on 29/07/18

* *

* This enumeration defines all possible pausing behaviors that can be * taken when a warning sign is triggered. *

* * @author Louis-wht * @since 1.0.0 * */ public enum PausingBehavior { /** * Won't wait at all. */ DONT_WAIT, /** * Will pause current failed scrap for a time delay * specified by {@link RequestsConfig#warningSignDelay()}. * */ PAUSE_CURRENT_THREAD_ONLY, /** * Will pause all current running scraps for a time delay * specified by {@link RequestsConfig#warningSignDelay()}. * Once the delay is over, the scraps will progressively * start back. */ PAUSE_ALL_THREADS }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy