SerializableTask, TasksMultipleIndexpublic abstract class GenericTask<T> extends AbstractTask<T>
indexName, taskID| Constructor | Description |
|---|---|
GenericTask() |
| Modifier and Type | Method | Description |
|---|---|---|
GenericTask<T> |
setAPIClient(APIClient apiClient) |
|
GenericTask<T> |
setIndex(String indexName) |
|
GenericTask<T> |
setTaskID(T taskID) |
|
void |
waitForCompletion() |
Wait for the completion of this task
|
void |
waitForCompletion(long timeToWait) |
Wait for the completion of this task
|
getIndexName, getTaskID, getTaskIDToWaitForpublic GenericTask<T> setAPIClient(APIClient apiClient)
public GenericTask<T> setIndex(String indexName)
setIndex in class AbstractTask<T>public void waitForCompletion()
throws AlgoliaException
AlgoliaExceptionpublic void waitForCompletion(long timeToWait)
throws AlgoliaException
timeToWait - the time to wait in millisecondsAlgoliaExceptionpublic GenericTask<T> setTaskID(T taskID)
setTaskID in class AbstractTask<T>Copyright © 2018. All rights reserved.