Class AsyncTaskEnqueuer

java.lang.Object
google.registry.batch.AsyncTaskEnqueuer

public final class AsyncTaskEnqueuer extends Object
Helper class to enqueue tasks for handling asynchronous operations in flows.
  • Field Details

  • Constructor Details

    • AsyncTaskEnqueuer

      @Inject public AsyncTaskEnqueuer(CloudTasksUtils cloudTasksUtils)
  • Method Details

    • enqueueAsyncResave

      public void enqueueAsyncResave(VKey<? extends EppResource> entityKey, org.joda.time.DateTime now, com.google.common.collect.ImmutableSortedSet<org.joda.time.DateTime> whenToResave)
      Enqueues a task to asynchronously re-save an entity at some point(s) in the future.

      Multiple re-save times are chained one after the other, i.e. any given run will re-enqueue itself to run at the next time if there are remaining re-saves scheduled.