Class StatefulListenableHyperlink
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.StatefulUrl,ai.platon.pulsar.common.urls.UrlAware,ai.platon.pulsar.skeleton.crawl.common.url.ListenableUrl,kotlin.Comparable
public class StatefulListenableHyperlink extends StatefulHyperlink implements ListenableUrl
A stateful hyperlink that has status and contains a PageEventHandlers to handle page events.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisPersistableprivate final DurationidleTimeprivate PageEventHandlerseventprivate Stringargsprivate StringauthTokenprivate final StringconfiguredUrlprivate Stringcountryprivate final InstantcreatedAtprivate final Instantdeadlineprivate Integerdepthprivate Stringdistrictprivate Stringhrefprivate final BooleanisAcceptedprivate final BooleanisCreatedprivate final BooleanisFinishedprivate final BooleanisNilprivate final BooleanisProcessingprivate final BooleanisStandardprivate final Stringlabelprivate Stringlangprivate InstantmodifiedAtprivate IntegernMaxRetryprivate Integerorderprivate Integerpriorityprivate Stringreferrerprivate StringremoteAddrprivate Integerstatusprivate Stringtextprivate final URLtoURLprivate final URLtoURLOrNullprivate Stringurl
-
Method Summary
Modifier and Type Method Description BooleanisPersistable()final DurationgetIdleTime()PageEventHandlersgetEvent()The event handler UnitsetEvent(PageEventHandlers event)The event handler -
Methods inherited from class ai.platon.pulsar.common.urls.AbstractUrl
compareTo, equals, getArgs, getConfiguredUrl, getCountry, getDeadline, getDepth, getDistrict, getHref, getLabel, getLang, getNMaxRetry, getOrder, getPriority, getReferrer, getText, getToURL, getToURLOrNull, getUrl, hashCode, isNil, isStandard, serialize, setArgs, setCountry, setDepth, setDistrict, setHref, setLang, setNMaxRetry, setOrder, setPriority, setReferrer, setText, setUrl, toString -
Methods inherited from class ai.platon.pulsar.common.urls.StatefulHyperlink
getAuthToken, getCreatedAt, getModifiedAt, getRemoteAddr, getStatus, isAccepted, isCreated, isFinished, isProcessing, setAuthToken, setModifiedAt, setRemoteAddr, setStatus -
Methods inherited from class ai.platon.pulsar.common.urls.Hyperlink
data, isDefault, serializeTo, toDatum -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isPersistable
Boolean isPersistable()
-
getIdleTime
final Duration getIdleTime()
-
getEvent
PageEventHandlers getEvent()
The event handler
-
setEvent
Unit setEvent(PageEventHandlers event)
The event handler
-
-
-
-