Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Brooks committed May 25, 2023
1 parent e60e49e commit 80ef850
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3615,6 +3615,12 @@ public final void sync(Translog.Location location, Consumer<Exception> syncListe
getEngine().asyncEnsureTranslogSynced(location, syncListener);
}

/**
* This method provides the same behavior as #sync but for persisting the global checkpoint. It will initiate a sync
* if the request global checkpoint is greater than the currently persisted global checkpoint. However, sam as #sync it
* will not ensure that the request global checkpoint is available to be synced. It is the caller's duty to only call this
* method with a valid processed global checkpoint that is available to sync.
*/
public final void syncGlobalCheckpoint(long globalCheckpoint, Consumer<Exception> syncListener) {
verifyNotClosed();
getEngine().asyncEnsureGlobalCheckpointSynced(globalCheckpoint, syncListener);
Expand Down

0 comments on commit 80ef850

Please sign in to comment.