public class Task extends GenericTask<Long>
apiClient, indexName| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getTaskIDToWaitFor() |
Task |
setAttributes(String indexName,
APIClient apiClient) |
void |
waitForCompletion()
Wait for the completion of this task
|
void |
waitForCompletion(long timeToWait)
Wait for the completion of this task
|
getTaskID, setTaskIDpublic Task setAttributes(String indexName, APIClient apiClient)
setAttributes 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 GenericTask<Long>Copyright © 2016. All rights reserved.