SerializableTaskIndexing, TaskSingleIndexpublic class Task extends GenericTask<Long>
indexName, taskID| Constructor | Description |
|---|---|
Task() |
| Modifier and Type | Method | Description |
|---|---|---|
Long |
getTaskIDToWaitFor() |
|
Task |
setAPIClient(APIClient apiClient) |
|
Task |
setIndex(String indexName) |
|
Task |
setTaskID(Long taskID) |
|
String |
toString() |
|
void |
waitForCompletion() |
Wait for the completion of this task
|
void |
waitForCompletion(long timeToWait) |
Wait for the completion of this task
|
void |
waitForCompletion(long timeToWait,
RequestOptions requestOptions) |
Wait for the completion of this task
|
void |
waitForCompletion(RequestOptions requestOptions) |
Wait for the completion of this task
|
getIndexName, 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 void waitForCompletion(@Nonnull RequestOptions requestOptions) throws AlgoliaException
requestOptions - Options to pass to this requestAlgoliaExceptionpublic void waitForCompletion(long timeToWait,
@Nonnull
RequestOptions requestOptions)
throws AlgoliaException
timeToWait - the time to wait in millisecondsrequestOptions - Options to pass to this requestAlgoliaExceptionpublic Long getTaskIDToWaitFor()
getTaskIDToWaitFor in class AbstractTask<Long>public Task setIndex(String indexName)
setIndex in class GenericTask<Long>public Task setTaskID(Long taskID)
setTaskID in class GenericTask<Long>Copyright © 2018. All rights reserved.