use of com.aerospike.client.listener.ExistsArrayListener in project aerospike-client-java by aerospike.
the class TestAsyncBatch method asyncBatchExistsArray.
@Test
public void asyncBatchExistsArray() {
client.exists(eventLoop, new ExistsArrayListener() {
public void onSuccess(Key[] keys, boolean[] existsArray) {
for (int i = 0; i < existsArray.length; i++) {
if (!assertEquals(true, existsArray[i])) {
break;
}
}
notifyComplete();
}
public void onFailure(AerospikeException e) {
setError(e);
notifyComplete();
}
}, null, sendKeys);
waitTillComplete();
}
Aggregations