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 final Instantdeadlineprivate StringauthTokenprivate StringremoteAddrprivate Integerstatusprivate InstantmodifiedAtprivate final InstantcreatedAtprivate Stringurlprivate Stringtextprivate Integerorderprivate Stringreferrerprivate Stringargsprivate Stringhrefprivate Integerpriorityprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate IntegernMaxRetryprivate Integerdepth
-
Method Summary
Modifier and Type Method Description StringgetConfiguredUrl()BooleanisStandard()URLgetToURL()URLgetToURLOrNull()BooleanisNil()BooleanisPersistable()If this link is persistable StringgetLabel()InstantgetDeadline()StringgetAuthToken()UnitsetAuthToken(String authToken)StringgetRemoteAddr()UnitsetRemoteAddr(String remoteAddr)IntegergetStatus()UnitsetStatus(Integer status)InstantgetModifiedAt()UnitsetModifiedAt(Instant modifiedAt)InstantgetCreatedAt()StringgetUrl()The url specification of the hyperlink, it is usually normalized, and can contain load arguments. UnitsetUrl(String url)The url specification of the hyperlink, it is usually normalized, and can contain load arguments. StringgetText()The anchor text UnitsetText(String text)The anchor text IntegergetOrder()The order of this hyperlink in it referrer page UnitsetOrder(Integer order)The order of this hyperlink in it referrer page StringgetReferrer()The url of the referrer page UnitsetReferrer(String referrer)The url of the referrer page StringgetArgs()The additional url arguments UnitsetArgs(String args)The additional 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 of this hyperlink UnitsetPriority(Integer priority)The priority of this hyperlink StringgetLang()The language of this hyperlink UnitsetLang(String lang)The language of this hyperlink StringgetCountry()The country of this hyperlink UnitsetCountry(String country)The country of this hyperlink StringgetDistrict()The district of this hyperlink UnitsetDistrict(String district)The district of this hyperlink IntegergetNMaxRetry()The maximum number of retries UnitsetNMaxRetry(Integer nMaxRetry)The maximum number of retries IntegergetDepth()The depth of this hyperlink UnitsetDepth(Integer depth)The depth of this hyperlink Booleanequals(Object other)An abstract url can compare to one of the following types: IntegerhashCode()IntegercompareTo(UrlAware other)StringtoString()-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completeExceptionally, completeOnTimeout, copy, defaultExecutor, exceptionNow, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, resultNow, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, state, 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
-
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()
-
getUrl
String getUrl()
The url specification of the hyperlink, it is usually normalized, and can contain load arguments.
-
setUrl
Unit setUrl(String url)
The url specification of the hyperlink, it is usually normalized, and can contain load arguments.
-
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 of this hyperlink
-
setPriority
Unit setPriority(Integer priority)
The priority of this hyperlink
-
getCountry
String getCountry()
The country of this hyperlink
-
setCountry
Unit setCountry(String country)
The country of this hyperlink
-
getDistrict
String getDistrict()
The district of this hyperlink
-
setDistrict
Unit setDistrict(String district)
The district of this hyperlink
-
getNMaxRetry
Integer getNMaxRetry()
The maximum number of retries
-
setNMaxRetry
Unit setNMaxRetry(Integer nMaxRetry)
The maximum number of retries
-
-
-
-