-
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 Throwableexception
-
Constructor Summary
Constructors Constructor Description FetchResult(FetchTask task, Response response, Throwable exception)
-
Method Summary
Modifier and Type Method Description final ProtocolStatusgetStatus()final BooleangetIsSuccess()final BooleangetIsPrivacyRetry()final BooleangetIsCrawlRetry()final BooleangetIsCanceled()final BooleangetIsSmall()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()
-
getIsSuccess
final Boolean getIsSuccess()
-
getIsPrivacyRetry
final Boolean getIsPrivacyRetry()
-
getIsCrawlRetry
final Boolean getIsCrawlRetry()
-
getIsCanceled
final Boolean getIsCanceled()
-
getIsSmall
final Boolean getIsSmall()
-
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()
-
canceled
final Unit canceled()
-
-
-
-