Package ai.platon.pulsar.common.urls
Class AbstractStatefulUrl
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.StatefulUrl,ai.platon.pulsar.common.urls.UrlAware,kotlin.Comparable
public abstract class AbstractStatefulUrl extends AbstractUrl implements StatefulUrl
An abstract stateful url is a StatefulUrl with some common properties and methods.
-
-
Field Summary
Fields Modifier and Type Field Description private Integerstatusprivate InstantmodifiedAtprivate final InstantcreatedAtprivate final StringconfiguredUrlprivate final BooleanisStandardprivate final URLtoURLprivate final URLtoURLOrNullprivate final BooleanisNilprivate final BooleanisPersistableprivate final Stringlabelprivate final Instantdeadlineprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate IntegernMaxRetryprivate Stringurlprivate Stringargsprivate Stringreferrerprivate Stringhrefprivate Integerpriorityprivate StringauthTokenprivate StringremoteAddr
-
Constructor Summary
Constructors Constructor Description AbstractStatefulUrl(String url, String args, String referrer)
-
Method Summary
Modifier and Type Method Description IntegergetStatus()The status of the url UnitsetStatus(Integer status)The status of the url InstantgetModifiedAt()The modified time UnitsetModifiedAt(Instant modifiedAt)The modified time InstantgetCreatedAt()The created time -
Methods inherited from class ai.platon.pulsar.common.urls.AbstractUrl
compareTo, equals, getArgs, getConfiguredUrl, getCountry, getDeadline, getDistrict, getHref, getLabel, getLang, getNMaxRetry, getPriority, getReferrer, getToURL, getToURLOrNull, getUrl, hashCode, isNil, isPersistable, isStandard, serialize, setArgs, setCountry, setDistrict, setHref, setLang, setNMaxRetry, setPriority, setReferrer, setUrl, toString -
Methods inherited from class ai.platon.pulsar.common.urls.StatefulUrl
getAuthToken, getRemoteAddr, setAuthToken, setRemoteAddr -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getModifiedAt
Instant getModifiedAt()
The modified time
-
setModifiedAt
Unit setModifiedAt(Instant modifiedAt)
The modified time
-
getCreatedAt
Instant getCreatedAt()
The created time
-
-
-
-