Interface ReplicationProgressListener


public interface ReplicationProgressListener
Callback interface for receiving progress updates during cache replication.

Implementations are notified as entries are transferred from the source edge to the target edge. The console UI uses this to display a live progress bar.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when replication completes (successfully, with errors, or cancelled).
    void
    Called when a single entry fails to transfer.
    void
    onProgress(long transferred, long skipped, long errors, long totalRemaining)
    Called after each entry is processed (transferred, skipped, or failed).
  • Method Details

    • onProgress

      void onProgress(long transferred, long skipped, long errors, long totalRemaining)
      Called after each entry is processed (transferred, skipped, or failed).
      Parameters:
      transferred - number of entries successfully written to the target
      skipped - number of entries already present on the target
      errors - number of entries that failed to transfer
      totalRemaining - estimated number of entries still to process (may be -1 if unknown)
    • onComplete

      void onComplete(ReplicationResult result)
      Called when replication completes (successfully, with errors, or cancelled).
      Parameters:
      result - the final replication result
    • onError

      void onError(String key, Exception e)
      Called when a single entry fails to transfer.
      Parameters:
      key - the cache key that failed
      e - the exception that caused the failure