-
- 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 Stringurlprivate final Stringhrefprivate final Stringdomainprivate final BooleanisCanceledprivate final BooleanisWorkingprivate final IntegerbatchIdprivate final Integerpriorityprivate final WebPagepageprivate final VolatileConfigvolatileConfigprivate final IntegerbatchSizeprivate final IntegerbatchTaskIdprivate BatchStatbatchStatprivate final Integeridprivate IntegernRetries
-
Method Summary
Modifier and Type Method Description final AtomicReference<FetchTask.State>getState()final ProxyEntrygetProxyEntry()final UnitsetProxyEntry(ProxyEntry proxyEntry)final StringgetUrl()final StringgetHref()final StringgetDomain()final BooleangetIsCanceled()final BooleangetIsWorking()final IntegergetBatchId()final IntegergetPriority()final WebPagegetPage()final VolatileConfiggetVolatileConfig()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)
-
getIsCanceled
final Boolean getIsCanceled()
-
getIsWorking
final Boolean getIsWorking()
-
getBatchId
final Integer getBatchId()
-
getPriority
final Integer getPriority()
-
getPage
final WebPage getPage()
-
getVolatileConfig
final VolatileConfig getVolatileConfig()
-
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)
-
-
-
-