public abstract class GenericTask<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected APIClient |
apiClient |
protected String |
indexName |
| Constructor and Description |
|---|
GenericTask() |
| Modifier and Type | Method and Description |
|---|---|
T |
getTaskID() |
abstract Long |
getTaskIDToWaitFor() |
GenericTask<T> |
setAttributes(String indexName,
APIClient apiClient) |
GenericTask |
setTaskID(T taskID) |
void |
waitForCompletion()
Wait for the completion of this task
|
void |
waitForCompletion(long timeToWait)
Wait for the completion of this task
|
public GenericTask<T> setAttributes(String indexName, APIClient apiClient)
public void waitForCompletion()
throws AlgoliaException
AlgoliaExceptionpublic void waitForCompletion(long timeToWait)
throws AlgoliaException
timeToWait - the time to wait in millisecondsAlgoliaExceptionpublic T getTaskID()
public GenericTask setTaskID(T taskID)
public abstract Long getTaskIDToWaitFor()
Copyright © 2016. All rights reserved.