Package ai.platon.pulsar.crawl.fetch
Class FetchResult
-
- All Implemented Interfaces:
public final class FetchResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFetchResult.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ProtocolStatusstatusprivate final BooleanisSuccessprivate final BooleanisPrivacyRetryprivate final BooleanisCrawlRetryprivate final BooleanisCanceledprivate final BooleanisSmallprivate final FetchTasktaskprivate Responseresponseprivate Throwableexceptionpublic final static FetchResult.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description FetchResult(FetchTask task, Response response, Throwable exception)
-
Method Summary
Modifier and Type Method Description final ProtocolStatusgetStatus()final BooleanisSuccess()final BooleanisPrivacyRetry()final BooleanisCrawlRetry()final BooleanisCanceled()final BooleanisSmall()final FetchTaskgetTask()final ResponsegetResponse()final UnitsetResponse(Response response)final ThrowablegetException()final UnitsetException(Throwable exception)final FetchTaskcomponent1()final Responsecomponent2()final Throwablecomponent3()final Unitcanceled()final Unitretry(RetryScope retryScope, String reason)final Unitfailed(Throwable t)-
-
Method Detail
-
getStatus
final ProtocolStatus getStatus()
-
isPrivacyRetry
final Boolean isPrivacyRetry()
-
isCrawlRetry
final Boolean isCrawlRetry()
-
isCanceled
final Boolean isCanceled()
-
getResponse
final Response getResponse()
-
setResponse
final Unit setResponse(Response response)
-
getException
final Throwable getException()
-
setException
final Unit setException(Throwable exception)
-
component1
final FetchTask component1()
-
component2
final Response component2()
-
component3
final Throwable component3()
-
-
-
-