com.netflix.astyanax
Interface RowCallback<K,C>
public interface RowCallback<K,C>
Method Summary |
boolean |
failure(com.netflix.astyanax.connectionpool.exceptions.ConnectionException e)
Notification of an error calling cassandra. |
void |
success(Rows<K,C> rows)
Notification for each block of rows. |
success
void success(Rows<K,C> rows)
- Notification for each block of rows.
- Parameters:
rows
-
failure
boolean failure(com.netflix.astyanax.connectionpool.exceptions.ConnectionException e)
- 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.
- Parameters:
e
-
- Returns:
- true to retry or false to exit