Class DnsRefreshRequest

java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.common.DnsRefreshRequest
All Implemented Interfaces:
Cloneable

@Entity public class DnsRefreshRequest extends ImmutableObject
  • 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

      public DnsUtils.TargetType getType()
    • getName

      public String getName()
    • getTld

      public String 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

      public VKey<DnsRefreshRequest> createVKey()
      Overrides:
      createVKey in class ImmutableObject
    • updateProcessTime

      public DnsRefreshRequest updateProcessTime(org.joda.time.DateTime processTime)