public final class FixedCrawlDelayMechanism extends Object implements CrawlDelayMechanism
Constructor and Description |
---|
FixedCrawlDelayMechanism(CrawlerConfiguration config)
Creates a
FixedCrawlDelayMechanism instance. |
Modifier and Type | Method and Description |
---|---|
long |
getDelay()
Returns the fixed delay specified in the configuration.
|
public FixedCrawlDelayMechanism(CrawlerConfiguration config)
FixedCrawlDelayMechanism
instance.config
- the crawler configuration which specifies the fixed delay durationpublic long getDelay()
getDelay
in interface CrawlDelayMechanism
Copyright © 2020. All rights reserved.