public class RaftSnapshotManager extends Object implements AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
downloadSnapshotFromOtherMasters()
Launches an asynchronous download of the most updated snapshot found on other masters in the
cluster.
|
long |
waitForAttemptToComplete()
Waits synchronously for the download attempt to be complete.
|
public long waitForAttemptToComplete()
RaftLog.INVALID_LOG_INDEX
if no
attempt is underwaypublic long downloadSnapshotFromOtherMasters()
public void close()
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.