Interface ExporterCallback<T>
- All Known Implementing Classes:
NoopExporterCallback
public interface ExporterCallback<T>
Notifies about exporter and storage-related operations from within a signal to disk exporter.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonExportError(Collection<T> items, Throwable error) Called when an export to disk operation failed.voidonExportSuccess(Collection<T> items) Called when an export to disk operation succeeded.voidCalled when the exporter is closed.
-
Method Details
-
onExportSuccess
Called when an export to disk operation succeeded.- Parameters:
items- The items successfully stored in disk.
-
onExportError
Called when an export to disk operation failed.- Parameters:
items- The items that couldn't get stored in disk.error- Optional - provides more information of why the operation failed.
-
onShutdown
void onShutdown()Called when the exporter is closed.
-