TaskIndexing
, TaskSingleIndex
public 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) |
|
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, getTaskID
setTaskID
public Task setAPIClient(APIClient apiClient)
setAPIClient
in class GenericTask<Long>
public void waitForCompletion() throws AlgoliaException
waitForCompletion
in class GenericTask<Long>
AlgoliaException
public void waitForCompletion(long timeToWait) throws AlgoliaException
waitForCompletion
in class GenericTask<Long>
timeToWait
- the time to wait in millisecondsAlgoliaException
public void waitForCompletion(@Nonnull RequestOptions requestOptions) throws AlgoliaException
requestOptions
- Options to pass to this requestAlgoliaException
public void waitForCompletion(long timeToWait, @Nonnull RequestOptions requestOptions) throws AlgoliaException
timeToWait
- the time to wait in millisecondsrequestOptions
- Options to pass to this requestAlgoliaException
public Long getTaskIDToWaitFor()
getTaskIDToWaitFor
in class AbstractTask<Long>
public Task setIndex(String indexName)
setIndex
in class GenericTask<Long>
Copyright © 2017. All rights reserved.