Interface StatusListener
- All Known Implementing Classes:
CollectingStatusListener
public interface StatusListener
Custom status listeners have to implement this interface.
FastCSV will call these methods synchronously – make sure not to perform time-consuming / blocking tasks!
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when the indexing finished successfully (without an exception).default voidCalled when there was an error while indexing.default voidonInit(long fileSize) Called on initialization.default voidonReadBytes(int bytes) Called when a new read operation has been performend.default voidCalled when a new record has been read.
-
Method Details
-
onInit
default void onInit(long fileSize) Called on initialization.- Parameters:
fileSize- the total file size.
-
onReadRecord
default void onReadRecord()Called when a new record has been read. -
onReadBytes
default void onReadBytes(int bytes) Called when a new read operation has been performend.- Parameters:
bytes- number of bytes read.
-
onComplete
default void onComplete()Called when the indexing finished successfully (without an exception). -
onError
Called when there was an error while indexing.- Parameters:
throwable- the exception thrown.
-