Class CompletableHyperlink
-
- 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 BooleanisStandardprivate final URLtoURLprivate final URLtoURLOrNullprivate final BooleanisNilprivate final BooleanisPersistableprivate final Stringlabelprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate IntegernMaxRetryprivate final Instantdeadlineprivate StringauthTokenprivate StringremoteAddrprivate Integerstatusprivate InstantmodifiedAtprivate final InstantcreatedAtprivate Stringurlprivate Stringtextprivate Integerorderprivate Stringreferrerprivate Stringargsprivate Stringhrefprivate Integerpriorityprivate final InstantdeadTimeprivate final Stringreferer
-
Method Summary
Modifier and Type Method Description StringgetConfiguredUrl()BooleanisStandard()URLgetToURL()URLgetToURLOrNull()BooleanisNil()BooleanisPersistable()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 InstantgetDeadline()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 its referrer page final UnitsetOrder(Integer order)The order of this hyperlink in its referrer page StringgetReferrer()The url of the referrer page UnitsetReferrer(String referrer)The url of the referrer 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)An abstract url can compare to one of the following types: IntegerhashCode()IntegercompareTo(UrlAware other)StringtoString()-
Methods inherited from class ai.platon.pulsar.common.urls.UrlAware
getDeadTime, getReferer -
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completeExceptionally, completeOnTimeout, copy, defaultExecutor, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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, 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()
-
isStandard
Boolean isStandard()
-
getToURLOrNull
URL getToURLOrNull()
-
isPersistable
Boolean isPersistable()
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
-
getDeadline
Instant getDeadline()
-
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()
-
getReferrer
String getReferrer()
The url of the referrer page
-
setReferrer
Unit setReferrer(String referrer)
The url of the referrer 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
-
-
-
-