Uses of Class
com.google.appengine.api.taskqueue.TaskOptions
Packages that use TaskOptions
Package
Description
Provides a mechanism to perform work initiated by a user request, outside of that request.
-
Uses of TaskOptions in com.google.appengine.api.taskqueue
Methods in com.google.appengine.api.taskqueue that return TaskOptionsModifier and TypeMethodDescriptionTaskOptions.clearParams()
Clears the parameters.TaskOptions.countdownMillis
(long countdownMillis) Set the number of milliseconds delay before execution of the task.TaskOptions.dispatchDeadline
(Duration dispatchDeadline) Sets the dispatch deadline for a task.TaskOptions.etaMillis
(long etaMillis) Sets the approximate absolute time to execute.Adds a headername/value
pair.Replaces the existing headers with the provided headername/value
mapping.TaskOptions.method
(TaskOptions.Method method) Set the method used for this task.Add a namedbyte
array parameter.Add a namedString
parameter.TaskOptions.payload
(byte[] payload) Sets the payload directly without specifying the content-type.Set the payload with the given content type.TaskOptions.payload
(DeferredTask deferredTask) Sets the payload to the serialized form of the deferredTask object.Set the payload byString
.Sets the payload from aString
given a specific character set.TaskOptions.removeHeader
(String headerName) Remove all headers with the given name.TaskOptions.removeParam
(String paramName) Remove all parameters with the given name.TaskOptions.retryOptions
(RetryOptions retryOptions) Sets retry options for this task.TaskOptions.tag
(byte[] tag) Sets the tag for a task.Sets the tag for a task.Sets the task name.Set the URL.static TaskOptions
TaskOptions.Builder.withCountdownMillis
(long countdownMillis) Returns defaultTaskOptions
and callscountdownMillis(long)
.static TaskOptions
TaskOptions.Builder.withDefaults()
Returns defaultTaskOptions
with default values.static TaskOptions
TaskOptions.Builder.withEtaMillis
(long etaMillis) Returns defaultTaskOptions
and callsetaMillis(long)
.static TaskOptions
TaskOptions.Builder.withHeader
(String headerName, String value) Returns defaultTaskOptions
and callsheader(String, String)
.static TaskOptions
TaskOptions.Builder.withHeaders
(Map<String, String> headers) Returns defaultTaskOptions
and callsheaders(Map)
.static TaskOptions
TaskOptions.Builder.withMethod
(TaskOptions.Method method) Returns defaultTaskOptions
and callsmethod(Method)
.static TaskOptions
Returns defaultTaskOptions
and callsparam(String, byte[])
.static TaskOptions
Returns defaultTaskOptions
and callsparam(String, String)
.static TaskOptions
TaskOptions.Builder.withPayload
(byte[] payload, String contentType) Returns defaultTaskOptions
and callspayload(byte[], String)
.static TaskOptions
TaskOptions.Builder.withPayload
(DeferredTask deferredTask) Returns defaultTaskOptions
and callspayload(DeferredTask)
.static TaskOptions
TaskOptions.Builder.withPayload
(String payload) Returns defaultTaskOptions
and callspayload(String)
.static TaskOptions
TaskOptions.Builder.withPayload
(String payload, String charset) Returns defaultTaskOptions
and callspayload(String, String)
.static TaskOptions
TaskOptions.Builder.withRetryOptions
(RetryOptions retryOptions) Returns defaultTaskOptions
and callsretryOptions(RetryOptions)
.static TaskOptions
TaskOptions.Builder.withTag
(byte[] tag) Returns defaultTaskOptions
and callstag(byte[])
.static TaskOptions
Returns defaultTaskOptions
and callstag(String)
.static TaskOptions
TaskOptions.Builder.withTaskName
(String taskName) Returns defaultTaskOptions
and callstaskName(String)
.static TaskOptions
Returns defaultTaskOptions
and callsurl(String)
.Methods in com.google.appengine.api.taskqueue with parameters of type TaskOptionsModifier and TypeMethodDescriptionQueue.add
(Transaction txn, TaskOptions taskOptions) Submits a task to this queue in the provided Transaction.Queue.add
(TaskOptions taskOptions) Submits a task to this queue.Queue.addAsync
(Transaction txn, TaskOptions taskOptions) Asynchronously submits a task to this queue in the provided Transaction.Queue.addAsync
(TaskOptions taskOptions) Asynchronously submits a task to this queue.Method parameters in com.google.appengine.api.taskqueue with type arguments of type TaskOptionsModifier and TypeMethodDescriptionQueue.add
(Transaction txn, Iterable<TaskOptions> taskOptions) Submits tasks to this queue in the provided Transaction.Queue.add
(Iterable<TaskOptions> taskOptions) Submits tasks to this queue.Queue.addAsync
(Transaction txn, Iterable<TaskOptions> taskOptions) Asynchronously submits tasks to this queue in the provided Transaction.Queue.addAsync
(Iterable<TaskOptions> taskOptions) Asynchronously submits tasks to this queue.Constructors in com.google.appengine.api.taskqueue with parameters of type TaskOptionsModifierConstructorDescriptionTaskHandle
(TaskOptions options, String queueName) TaskOptions
(TaskOptions options) A copy constructor forTaskOptions
.