com.netflix.astyanax.RowCallback Maven / Gradle / Ivy
package com.netflix.astyanax;
import com.netflix.astyanax.connectionpool.exceptions.ConnectionException;
import com.netflix.astyanax.model.Rows;
public interface RowCallback {
/**
* Notification for each block of rows.
*
* @param rows
*/
void success(Rows rows);
/**
* Notification of an error calling cassandra. In your handler you can
* implement your own backoff logic and return true to retry or false to
* stop the query.
*
* @param e
* @return true to retry or false to exit
*/
boolean failure(ConnectionException e);
}