|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BackgroundTask
Unit of work on the Datastore. Implementing classes must implement:
TaskRequest contents.
| Field Summary | |
|---|---|
static int |
DEFAULT_BATCH_SIZE
the default batch size to use |
| Method Summary | |
|---|---|
java.lang.Integer |
getBatchSize()
|
java.lang.String |
getId()
|
java.lang.String |
getQueueName()
|
long |
proceed(TaskRequest request)
Executes this task. |
BackgroundTask |
withBatchSize(int batchSize)
Specifies the number of entities to process per execution, default 150 |
BackgroundTask |
withQueue(java.lang.String queueName)
Set the queue name to use. |
| Field Detail |
|---|
static final int DEFAULT_BATCH_SIZE
| Method Detail |
|---|
long proceed(TaskRequest request)
request - the task request
java.lang.String getId()
BackgroundTask withBatchSize(int batchSize)
BackgroundTask withQueue(java.lang.String queueName)
queueName - the name of the queue to use
java.lang.String getQueueName()
java.lang.Integer getBatchSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||