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
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • 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)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getConfiguredUrl()
      Boolean isStandard()
      URL getToURL()
      URL getToURLOrNull()
      Boolean isNil()
      Boolean isPersistable() If this link is persistable
      String getLabel()
      Instant getDeadline()
      String getAuthToken()
      Unit setAuthToken(String authToken)
      String getRemoteAddr()
      Unit setRemoteAddr(String remoteAddr)
      Integer getStatus()
      Unit setStatus(Integer status)
      Instant getModifiedAt()
      Unit setModifiedAt(Instant modifiedAt)
      Instant getCreatedAt()
      String getUrl() The url specification of the hyperlink, it is usually normalized, and can contain load arguments.
      Unit setUrl(String url) The url specification of the hyperlink, it is usually normalized, and can contain load arguments.
      String getText() The anchor text
      Unit setText(String text) The anchor text
      Integer getOrder() The order of this hyperlink in it referrer page
      Unit setOrder(Integer order) The order of this hyperlink in it referrer page
      String getReferrer() The url of the referrer page
      Unit setReferrer(String referrer) The url of the referrer page
      String getArgs() The additional url arguments
      Unit setArgs(String args) The additional url arguments
      String getHref() The hypertext reference, It defines the address of the document, which this time is linked from
      Unit setHref(String href) The hypertext reference, It defines the address of the document, which this time is linked from
      Integer getPriority() The priority of this hyperlink
      Unit setPriority(Integer priority) The priority of this hyperlink
      String getLang() The language of this hyperlink
      Unit setLang(String lang) The language of this hyperlink
      String getCountry() The country of this hyperlink
      Unit setCountry(String country) The country of this hyperlink
      String getDistrict() The district of this hyperlink
      Unit setDistrict(String district) The district of this hyperlink
      Integer getNMaxRetry() The maximum number of retries
      Unit setNMaxRetry(Integer nMaxRetry) The maximum number of retries
      Integer getDepth() The depth of this hyperlink
      Unit setDepth(Integer depth) The depth of this hyperlink
      Boolean equals(Object other) An abstract url can compare to one of the following types:
      Integer hashCode()
      Integer compareTo(UrlAware other)
      String toString()
      • 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
    • Constructor Detail

      • CompletableHyperlink

        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)