Migrate ReadDnsQueueAction to use CloudTasksUtils (#1669)

* Migrate ReadDnsQueueAction to use CloudTasksUtils

Also marked TaskQueueUtils as deprecated and fixed a few linter errors.

Note that DNS pull queue still requires the use of the GAE Task Queue API.

* Fix a test failure

* Remove TaskQueueUtils from VKeyTest

* Remove the @error exception that was inadvertently pulled in
This commit is contained in:
Lai Jiang 2022-06-15 13:48:28 -04:00 committed by GitHub
parent 471205ad77
commit fbc37485f5
9 changed files with 178 additions and 245 deletions

View file

@ -26,7 +26,13 @@ import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
/** Utilities for dealing with App Engine task queues. */
/**
* Utilities for dealing with App Engine task queues.
*
* <p>Use {@link CloudTasksUtils} to interact with push queues (Cloud Task queues). Pull queues will
* be implemented separately in SQL and you can continue using this class for that for now.
*/
@Deprecated
public class TaskQueueUtils implements Serializable {
private static final long serialVersionUID = 7893211200220508362L;