Package google.registry.batch
Class AsyncTaskEnqueuer
java.lang.Object
google.registry.batch.AsyncTaskEnqueuer
Helper class to enqueue tasks for handling asynchronous operations in flows.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
PARAM_RESOURCE_KEY
The HTTP parameter names used by async flows.- See Also:
-
PARAM_REQUESTED_TIME
- See Also:
-
PARAM_RESAVE_TIMES
- See Also:
-
QUEUE_ASYNC_ACTIONS
The task queue names used by async flows.- See Also:
-
-
Constructor Details
-
AsyncTaskEnqueuer
-
-
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.
-