Package ai.platon.pulsar.crawl.fetch
Object FetchResult.Companion
-
- All Implemented Interfaces:
public class FetchResult.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static FetchResult.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FetchResultunchanged(FetchTask task)final FetchResultunfetched(FetchTask task)final FetchResultcanceled(FetchTask task)final FetchResultcanceled(FetchTask task, String reason)final FetchResultretry(FetchTask task, RetryScope retryScope, String reason)final FetchResultprivacyRetry(FetchTask task, String reason)final FetchResultprivacyRetry(FetchTask task, Exception reason)final FetchResultcrawlRetry(FetchTask task, String reason)final FetchResultcrawlRetry(FetchTask task, Duration delay, String message)final FetchResultcrawlRetry(FetchTask task, Exception reason)final FetchResultcrawlRetry(FetchTask task, Duration delay, Exception reason)final FetchResultfailed(FetchTask task, Throwable e)-
-
Method Detail
-
unchanged
final FetchResult unchanged(FetchTask task)
-
unfetched
final FetchResult unfetched(FetchTask task)
-
canceled
final FetchResult canceled(FetchTask task)
-
canceled
final FetchResult canceled(FetchTask task, String reason)
-
retry
final FetchResult retry(FetchTask task, RetryScope retryScope, String reason)
-
privacyRetry
final FetchResult privacyRetry(FetchTask task, String reason)
-
privacyRetry
final FetchResult privacyRetry(FetchTask task, Exception reason)
-
crawlRetry
final FetchResult crawlRetry(FetchTask task, String reason)
-
crawlRetry
final FetchResult crawlRetry(FetchTask task, Duration delay, String message)
-
crawlRetry
final FetchResult crawlRetry(FetchTask task, Exception reason)
-
crawlRetry
final FetchResult crawlRetry(FetchTask task, Duration delay, Exception reason)
-
failed
final FetchResult failed(FetchTask task, Throwable e)
-
-
-
-