public class InsertTaskRequest extends Object
Representation of an a task to be indexed.
See http://schemas.taskcluster.net/index/v1/insert-task-request.json#
| Modifier and Type | Field and Description |
|---|---|
Object |
data
This is an arbitrary JSON object.
|
Date |
expires
Date at which this entry expires from the task index.
|
int |
rank
If multiple tasks are indexed with the same
namespace the task with the highest rank will be stored and returned in later requests. |
String |
taskId
Unique task identifier, this is UUID encoded as URL-safe base64 and stripped of
= padding. |
| Constructor and Description |
|---|
InsertTaskRequest() |
public Object data
This is an arbitrary JSON object. Feel free to put whatever data you want here, but do limit it, you’ll get errors if you store more than 32KB. So stay well, below that limit.
public Date expires
Date at which this entry expires from the task index.
public int rank
If multiple tasks are indexed with the same namespace the task with the highest rank will be stored and returned in later requests. If two tasks has the same rank the latest task will be stored.
public String taskId
Unique task identifier, this is UUID encoded as URL-safe base64 and stripped of = padding.
Copyright © 2014–2016 Mozilla. All rights reserved.