-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.StatefulUrl,ai.platon.pulsar.common.urls.UrlAware,ai.platon.pulsar.crawl.common.url.ListenableUrl,java.util.concurrent.CompletionStage,java.util.concurrent.Future,kotlin.Comparable
public class CompletableListenableHyperlink<T extends Object> extends CompletableHyperlink<T> implements UrlAware, Comparable<UrlAware>, ListenableUrl
-
-
Field Summary
Fields Modifier and Type Field Description private PulsarEventHandlereventHandlerprivate Stringargsprivate final StringconfiguredUrlprivate final Stringcountryprivate final InstantdeadTimeprivate final Stringdistrictprivate Stringhrefprivate final BooleanisNilprivate final BooleanisPersistableprivate final Stringlabelprivate final Stringlangprivate final IntegernMaxRetryprivate Integerpriorityprivate Stringrefererprivate Stringurlprivate StringauthTokenprivate StringremoteAddrprivate Integerstatusprivate InstantmodifiedAtprivate final InstantcreatedAtprivate Stringtextprivate Integerorderprivate final Objectresultprivate final CompletableFuture.Completionstack
-
Constructor Summary
Constructors Constructor Description CompletableListenableHyperlink(String url, String text, Integer order, String referer, String args, String href, PulsarEventHandler eventHandler)
-
Method Summary
Modifier and Type Method Description PulsarEventHandlergetEventHandler()The event handler UnitsetEventHandler(PulsarEventHandler eventHandler)The event handler abstract StringgetArgs()abstract UnitsetArgs(String args)abstract StringgetConfiguredUrl()abstract StringgetCountry()abstract InstantgetDeadTime()abstract StringgetDistrict()abstract StringgetHref()abstract UnitsetHref(String href)abstract BooleangetIsNil()abstract BooleangetIsPersistable()abstract StringgetLabel()abstract StringgetLang()abstract IntegergetNMaxRetry()abstract IntegergetPriority()abstract UnitsetPriority(Integer priority)abstract StringgetReferer()abstract UnitsetReferer(String referer)abstract StringgetUrl()abstract UnitsetUrl(String url)StringgetAuthToken()UnitsetAuthToken(String authToken)StringgetRemoteAddr()UnitsetRemoteAddr(String remoteAddr)IntegergetStatus()UnitsetStatus(Integer status)InstantgetModifiedAt()UnitsetModifiedAt(Instant modifiedAt)InstantgetCreatedAt()final StringgetText()The anchor text of this hyperlink final UnitsetText(String text)The anchor text of this hyperlink final IntegergetOrder()The order of this hyperlink in it's referer page final UnitsetOrder(Integer order)The order of this hyperlink in it's referer page -
Methods inherited from class ai.platon.pulsar.crawl.common.url.CompletableListenableHyperlink
compareTo -
Methods inherited from class ai.platon.pulsar.crawl.common.url.CompletableHyperlink
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, biAccept, biApply, biRun, bipush, cancel, cleanStack, complete, completeAsync, completeAsync, completeExceptionally, completeNull, completeOnTimeout, completeRelay, completeThrowable, completeThrowable, completeValue, copy, defaultExecutor, encodeOutcome, encodeValue, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, internalComplete, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, orpush, postComplete, postFire, postFire, pushStack, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, tryPushStack, uniExceptionally, uniHandle, uniWhenComplete, unipush, whenComplete, whenCompleteAsync, whenCompleteAsync -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEventHandler
PulsarEventHandler getEventHandler()
The event handler
-
setEventHandler
Unit setEventHandler(PulsarEventHandler eventHandler)
The event handler
-
getConfiguredUrl
abstract String getConfiguredUrl()
-
getCountry
abstract String getCountry()
-
getDeadTime
abstract Instant getDeadTime()
-
getDistrict
abstract String getDistrict()
-
getIsPersistable
abstract Boolean getIsPersistable()
-
getNMaxRetry
abstract Integer getNMaxRetry()
-
getPriority
abstract Integer getPriority()
-
setPriority
abstract Unit setPriority(Integer priority)
-
getReferer
abstract String getReferer()
-
setReferer
abstract Unit setReferer(String referer)
-
getAuthToken
String getAuthToken()
-
setAuthToken
Unit setAuthToken(String authToken)
-
getRemoteAddr
String getRemoteAddr()
-
setRemoteAddr
Unit setRemoteAddr(String remoteAddr)
-
getModifiedAt
Instant getModifiedAt()
-
setModifiedAt
Unit setModifiedAt(Instant modifiedAt)
-
getCreatedAt
Instant getCreatedAt()
-
-
-
-