public abstract class Task extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPLETE |
static int |
IN_PROGRESS |
static int |
NOT_FOUND |
Constructor and Description |
---|
Task()
Initialize task that has already completed.
|
Task(com.aerospike.client.cluster.Cluster cluster,
Policy policy)
Initialize task with fields needed to query server nodes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDone()
Has task completed.
|
abstract int |
queryStatus()
Query all nodes for task completion status.
|
void |
waitTillComplete()
Wait for asynchronous task to complete using default sleep interval (1 second).
|
void |
waitTillComplete(int sleepInterval)
Wait for asynchronous task to complete using given sleep interval in milliseconds.
|
void |
waitTillComplete(int sleepInterval,
int timeout)
Wait for asynchronous task to complete using given sleep interval and timeout in milliseconds.
|
public static final int NOT_FOUND
public static final int IN_PROGRESS
public static final int COMPLETE
public Task(com.aerospike.client.cluster.Cluster cluster, Policy policy)
public Task()
public final void waitTillComplete()
public final void waitTillComplete(int sleepInterval)
public final void waitTillComplete(int sleepInterval, int timeout)
public final boolean isDone()
public abstract int queryStatus()
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.