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 Link icon

    • id Link icon

      protected long id
  • Constructor Details Link icon

    • DnsRefreshRequest Link icon

      protected DnsRefreshRequest()
    • DnsRefreshRequest Link icon

      public DnsRefreshRequest(DnsUtils.TargetType type, String name, String tld, org.joda.time.DateTime requestTime)
  • Method Details Link icon

    • getType Link icon

      public DnsUtils.TargetType getType()
    • getName Link icon

      public String getName()
    • getTld Link icon

      public String getTld()
    • getRequestTime Link icon

      public org.joda.time.DateTime getRequestTime()
    • getLastProcessTime Link icon

      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 Link icon

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

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