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 Type
    Method
    Description
    void
    Called when an export to disk operation failed.
    void
    Called when an export to disk operation succeeded.
    void
    Called when the exporter is closed.
  • Method Details

    • onExportSuccess

      void onExportSuccess(Collection<T> items)
      Called when an export to disk operation succeeded.
      Parameters:
      items - The items successfully stored in disk.
    • onExportError

      void onExportError(Collection<T> items, @Nullable Throwable error)
      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.