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 TypeMethodDescriptionvoidonComplete(ReplicationResult result) Called when replication completes (successfully, with errors, or cancelled).voidCalled when a single entry fails to transfer.voidonProgress(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 targetskipped- number of entries already present on the targeterrors- number of entries that failed to transfertotalRemaining- estimated number of entries still to process (may be -1 if unknown)
-
onComplete
Called when replication completes (successfully, with errors, or cancelled).- Parameters:
result- the final replication result
-
onError
-