Package google.registry.model.common
Class DnsRefreshRequest
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.common.DnsRefreshRequest
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
ModifierConstructorDescriptionprotected
DnsRefreshRequest
(DnsUtils.TargetType type, String name, String tld, org.joda.time.DateTime requestTime) -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTime
The time at which the entity was last processed.getName()
org.joda.time.DateTime
getTld()
getType()
updateProcessTime
(org.joda.time.DateTime processTime) Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Field Details
-
id
protected long id
-
-
Constructor Details
-
DnsRefreshRequest
protected DnsRefreshRequest() -
DnsRefreshRequest
public DnsRefreshRequest(DnsUtils.TargetType type, String name, String tld, org.joda.time.DateTime requestTime)
-
-
Method Details
-
getType
-
getName
-
getTld
-
getRequestTime
public org.joda.time.DateTime getRequestTime() -
getLastProcessTime
public org.joda.time.DateTime getLastProcessTime()The time at which the entity was last processed.Note that "processed" means that it was read, not necessarily that the DNS request was processed successfully. The subsequent steps to bundle requests together and enqueue them in a Cloud Tasks queue for
PublishDnsUpdatesAction
to process can still fail.This value allows us to control if a row is just recently read and should be skipped, should there are concurrent reads that all attempt to read the rows with oldest
requestTime
, or another read that comes too early after the previous read. -
createVKey
- Overrides:
createVKey
in classImmutableObject
-
updateProcessTime
-