Class FetchTask
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class FetchTask implements Comparable<FetchTask>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumFetchTask.Statepublic classFetchTask.Companion
-
Field Summary
Fields Modifier and Type Field Description private final AtomicReference<FetchTask.State>stateprivate ProxyEntryproxyEntryprivate final InstantcreatedTimeprivate final Stringurlprivate final Stringhrefprivate final VolatileConfigpageConfprivate final Stringdomainprivate final BooleanisCanceledprivate final BooleanisWorkingprivate final IntegerbatchIdprivate final Integerpriorityprivate final WebPagepageprivate final Fingerprintfingerprintprivate final IntegerbatchSizeprivate final IntegerbatchTaskIdprivate BatchStatbatchStatprivate final Integeridprivate IntegernRetriespublic final static FetchTask.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final AtomicReference<FetchTask.State>getState()final ProxyEntrygetProxyEntry()final UnitsetProxyEntry(ProxyEntry proxyEntry)final InstantgetCreatedTime()final StringgetUrl()final StringgetHref()final VolatileConfiggetPageConf()final StringgetDomain()final BooleanisCanceled()final BooleanisWorking()final IntegergetBatchId()final IntegergetPriority()final WebPagegetPage()final FingerprintgetFingerprint()final IntegergetBatchSize()final IntegergetBatchTaskId()final BatchStatgetBatchStat()final UnitsetBatchStat(BatchStat batchStat)final IntegergetId()final IntegergetNRetries()final UnitsetNRetries(Integer nRetries)final UnitmarkReady()final UnitstartWork()final Unitcancel()final Unitdone()final Unitreset()final FetchTaskclone()IntegercompareTo(FetchTask other)Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getState
final AtomicReference<FetchTask.State> getState()
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
setProxyEntry
final Unit setProxyEntry(ProxyEntry proxyEntry)
-
getCreatedTime
final Instant getCreatedTime()
-
getPageConf
final VolatileConfig getPageConf()
-
isCanceled
final Boolean isCanceled()
-
getBatchId
final Integer getBatchId()
-
getPriority
final Integer getPriority()
-
getPage
final WebPage getPage()
-
getFingerprint
final Fingerprint getFingerprint()
-
getBatchSize
final Integer getBatchSize()
-
getBatchTaskId
final Integer getBatchTaskId()
-
getBatchStat
final BatchStat getBatchStat()
-
setBatchStat
final Unit setBatchStat(BatchStat batchStat)
-
getNRetries
final Integer getNRetries()
-
setNRetries
final Unit setNRetries(Integer nRetries)
-
-
-
-