com.aerospike.client.task
Class Task

java.lang.Object
  extended by com.aerospike.client.task.Task
Direct Known Subclasses:
ExecuteTask, IndexTask, RegisterTask

public abstract class Task
extends Object

Task used to poll for server task completion.


Constructor Summary
Task(com.aerospike.client.cluster.Cluster cluster, boolean done)
          Initialize task with fields needed to query server nodes.
 
Method Summary
abstract  boolean isDone()
          Query all nodes for task completion status.
 void waitTillComplete()
          Wait for asynchronous task to complete using default sleep interval.
 void waitTillComplete(int sleepInterval)
          Wait for asynchronous task to complete using given sleep interval.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task(com.aerospike.client.cluster.Cluster cluster,
            boolean done)
Initialize task with fields needed to query server nodes.

Method Detail

waitTillComplete

public final void waitTillComplete()
                            throws AerospikeException
Wait for asynchronous task to complete using default sleep interval.

Throws:
AerospikeException

waitTillComplete

public final void waitTillComplete(int sleepInterval)
                            throws AerospikeException
Wait for asynchronous task to complete using given sleep interval.

Throws:
AerospikeException

isDone

public abstract boolean isDone()
                        throws AerospikeException
Query all nodes for task completion status.

Throws:
AerospikeException


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.