From 6ca016a5fdceddd09bf9d04f2299bfc88ee3d133 Mon Sep 17 00:00:00 2001 From: Lawrence L Date: Fri, 9 Jun 2017 10:32:38 -0700 Subject: [PATCH] Region tags for documentation --- .../java/com/example/appengine/taskqueue/push/Enqueue.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appengine-java8/taskqueues-push/src/main/java/com/example/appengine/taskqueue/push/Enqueue.java b/appengine-java8/taskqueues-push/src/main/java/com/example/appengine/taskqueue/push/Enqueue.java index 2731a1ebcdb..4039e05c0c5 100644 --- a/appengine-java8/taskqueues-push/src/main/java/com/example/appengine/taskqueue/push/Enqueue.java +++ b/appengine-java8/taskqueues-push/src/main/java/com/example/appengine/taskqueue/push/Enqueue.java @@ -14,9 +14,11 @@ */ package com.example.appengine.taskqueue.push; +// [START import] import com.google.appengine.api.taskqueue.Queue; import com.google.appengine.api.taskqueue.QueueFactory; import com.google.appengine.api.taskqueue.TaskOptions; +// [END import] import java.io.IOException; @@ -37,8 +39,10 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) String key = request.getParameter("key"); // Add the task to the default queue. + // [START addQueue] Queue queue = QueueFactory.getDefaultQueue(); queue.add(TaskOptions.Builder.withUrl("/worker").param("key", key)); + // [END addQueue] response.sendRedirect("/"); }