Interface BatchListener
-
public interface BatchListenerListener interface to add behavior after executing batch operations on databases (e.g. write rows to file).- Since:
- 2.8.1
- Author:
- João Fernandes (joao.fernandes@feedzai.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFailure(BatchEntry[] rowsFailed)Callback indicating that one or more rows have failed to be persisted.voidonSuccess(BatchEntry[] rowsSucceeded)Callback indicating that one or more rows have succeeded to be persisted.
-
-
-
Method Detail
-
onFailure
void onFailure(BatchEntry[] rowsFailed)
Callback indicating that one or more rows have failed to be persisted.- Parameters:
rowsFailed- An array ofentrieswith the row or rows that failed to be persisted.
-
onSuccess
void onSuccess(BatchEntry[] rowsSucceeded)
Callback indicating that one or more rows have succeeded to be persisted.- Parameters:
rowsSucceeded- An array ofentrieswith the row or rows that succeeded to be persisted.
-
-