-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.StatefulUrl,ai.platon.pulsar.common.urls.UrlAware,java.util.concurrent.CompletionStage,java.util.concurrent.Future,kotlin.Comparable
public class CompletableHyperlink<T extends Object> extends CompletableFuture<T> implements UrlAware, Comparable<UrlAware>, StatefulUrl
-
-
Field Summary
Fields Modifier and Type Field Description private final StringconfiguredUrlprivate final BooleanisNilprivate final BooleanisPersistableprivate final Stringlabelprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate IntegernMaxRetryprivate final InstantdeadTimeprivate StringauthTokenprivate StringremoteAddrprivate Integerstatusprivate InstantmodifiedAtprivate final InstantcreatedAtprivate Stringurlprivate Stringtextprivate Integerorderprivate Stringrefererprivate Stringargsprivate Stringhrefprivate Integerpriorityprivate final Objectresultprivate final CompletableFuture.Completionstack
-
Method Summary
Modifier and Type Method Description StringgetConfiguredUrl()BooleangetIsNil()BooleangetIsPersistable()If this link is persistable StringgetLabel()StringgetLang()Required website language UnitsetLang(String lang)Required website language StringgetCountry()Required website country UnitsetCountry(String country)Required website country StringgetDistrict()Required website district UnitsetDistrict(String district)Required website district IntegergetNMaxRetry()The maximum retry times UnitsetNMaxRetry(Integer nMaxRetry)The maximum retry times InstantgetDeadTime()StringgetAuthToken()UnitsetAuthToken(String authToken)StringgetRemoteAddr()UnitsetRemoteAddr(String remoteAddr)IntegergetStatus()UnitsetStatus(Integer status)InstantgetModifiedAt()UnitsetModifiedAt(Instant modifiedAt)InstantgetCreatedAt()StringgetUrl()The url of this hyperlink UnitsetUrl(String url)The url of this hyperlink 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 StringgetReferer()The url of the referer page UnitsetReferer(String referer)The url of the referer page StringgetArgs()The url arguments UnitsetArgs(String args)The url arguments StringgetHref()The hypertext reference, It defines the address of the document, which this time is linked from UnitsetHref(String href)The hypertext reference, It defines the address of the document, which this time is linked from IntegergetPriority()The priority UnitsetPriority(Integer priority)The priority Booleanequals(Object other)A abstract url can be compare to one of the following types: IntegerhashCode()IntegercompareTo(UrlAware other)StringtoString()-
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
-
getConfiguredUrl
String getConfiguredUrl()
-
getIsPersistable
Boolean getIsPersistable()
If this link is persistable
-
getCountry
String getCountry()
Required website country
-
setCountry
Unit setCountry(String country)
Required website country
-
getDistrict
String getDistrict()
Required website district
-
setDistrict
Unit setDistrict(String district)
Required website district
-
getNMaxRetry
Integer getNMaxRetry()
The maximum retry times
-
setNMaxRetry
Unit setNMaxRetry(Integer nMaxRetry)
The maximum retry times
-
getDeadTime
Instant getDeadTime()
-
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()
-
getReferer
String getReferer()
The url of the referer page
-
setReferer
Unit setReferer(String referer)
The url of the referer page
-
getHref
String getHref()
The hypertext reference, It defines the address of the document, which this time is linked from
-
setHref
Unit setHref(String href)
The hypertext reference, It defines the address of the document, which this time is linked from
-
getPriority
Integer getPriority()
The priority
-
setPriority
Unit setPriority(Integer priority)
The priority
-
-
-
-