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
-
Constructor Summary
Constructors Constructor Description CompletableHyperlink(String url, String text, Integer order, String referrer, String args, String href, Integer priority, String lang, String country, String district, Integer nMaxRetry, Integer depth)
-
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: a String
a URL
a UrlAware
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()
-
getToURL
URL getToURL()
-
getToURLOrNull
URL getToURLOrNull()
-
isNil
Boolean isNil()
-
isPersistable
Boolean isPersistable()
If this link is persistable
-
getLabel
String getLabel()
-
getDeadline
Instant getDeadline()
-
getAuthToken
String getAuthToken()
-
setAuthToken
Unit setAuthToken(String authToken)
-
getRemoteAddr
String getRemoteAddr()
-
setRemoteAddr
Unit setRemoteAddr(String remoteAddr)
-
getStatus
Integer getStatus()
-
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.
-
getText
String getText()
The anchor text
-
getOrder
Integer getOrder()
The order of this hyperlink in it referrer page
-
getReferrer
String getReferrer()
The url of the referrer page
-
setReferrer
Unit setReferrer(String referrer)
The url of the referrer page
-
getArgs
String getArgs()
The additional url arguments
-
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
-
getLang
String getLang()
The language 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
-
getDepth
Integer getDepth()
The depth of this hyperlink
-
equals
Boolean equals(Object other)
An abstract url can compare to one of the following types:
a String
a URL
a UrlAware
-
hashCode
Integer hashCode()
-
compareTo
Integer compareTo(UrlAware other)
-
toString
String toString()
-
-
-