public static class MapSettings.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
backend |
protected String |
baseUrl |
protected int |
maxShardRetries |
protected int |
maxSliceRetries |
protected int |
millisPerSlice |
protected String |
module |
protected String |
workerQueueName |
Constructor and Description |
---|
MapSettings.Builder() |
MapSettings.Builder(MapSettings settings) |
Modifier and Type | Method and Description |
---|---|
MapSettings |
build() |
protected MapSettings.Builder |
self() |
B |
setBackend(String backend)
Deprecated.
Use modules instead.
|
B |
setBaseUrl(String baseUrl)
Sets the base URL that will be used for all requests related to this job.
|
B |
setMaxShardRetries(int maxShardRetries)
The number of times a Shard can fail before it gives up and fails the whole job.
|
B |
setMaxSliceRetries(int maxSliceRetries)
The number of times a Slice can fail before triggering a shard retry.
|
B |
setMillisPerSlice(int millisPerSlice)
Sets how long a worker will process items before endSlice is called and progress is
checkpointed to datastore.
|
B |
setModule(String module)
Specifies the Module that the job will run on.
|
B |
setWorkerQueueName(String workerQueueName)
Sets the TaskQueue that will be used to queue the job's tasks.
|
protected String baseUrl
protected String module
protected String backend
protected String workerQueueName
protected int millisPerSlice
protected int maxShardRetries
protected int maxSliceRetries
public MapSettings.Builder()
public MapSettings.Builder(MapSettings settings)
protected MapSettings.Builder self()
public MapSettings build()
public B setBaseUrl(String baseUrl)
public B setModule(String module)
null
, it will run on the current module.@Deprecated public B setBackend(String backend)
public B setWorkerQueueName(String workerQueueName)
public B setMillisPerSlice(int millisPerSlice)
public B setMaxShardRetries(int maxShardRetries)
public B setMaxSliceRetries(int maxSliceRetries)
Copyright © 2015 Google. All rights reserved.