public class Task extends GenericTask<Long>
indexName, taskID| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getTaskIDToWaitFor() |
Task |
setAPIClient(APIClient apiClient) |
Task |
setIndex(String indexName) |
void |
waitForCompletion()
Wait for the completion of this task
|
void |
waitForCompletion(long timeToWait)
Wait for the completion of this task
|
setTaskIDgetIndexName, getTaskIDpublic Task setAPIClient(APIClient apiClient)
setAPIClient in class GenericTask<Long>public void waitForCompletion()
throws AlgoliaException
waitForCompletion in class GenericTask<Long>AlgoliaExceptionpublic void waitForCompletion(long timeToWait)
throws AlgoliaException
waitForCompletion in class GenericTask<Long>timeToWait - the time to wait in millisecondsAlgoliaExceptionpublic Long getTaskIDToWaitFor()
getTaskIDToWaitFor in class AbstractTask<Long>public Task setIndex(String indexName)
setIndex in class GenericTask<Long>Copyright © 2016. All rights reserved.