All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.RowCallback Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy