Class AbstractDelay
- java.lang.Object
-
- com.norconex.collector.http.delay.impl.AbstractDelay
-
- Direct Known Subclasses:
CrawlerDelay
,SiteDelay
,ThreadDelay
public abstract class AbstractDelay extends Object
Convenience class to encapsulate various delay strategies.- Author:
- Pascal Essiembre
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
TINY_SLEEP_MS
-
Constructor Summary
Constructors Constructor Description AbstractDelay()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
delay(long expectedDelayNanos, long lastHitNanos)
abstract void
delay(long expectedDelayNanos, String url)
-
-
-
Field Detail
-
TINY_SLEEP_MS
protected static final int TINY_SLEEP_MS
- See Also:
- Constant Field Values
-
-
Method Detail
-
delay
public abstract void delay(long expectedDelayNanos, String url)
-
delay
protected void delay(long expectedDelayNanos, long lastHitNanos)
-
-