public interface SnapshotManagementApi
| 限定符和类型 | 方法和说明 |
|---|---|
default RaftClientReply |
create(boolean force,
long timeoutMs)
The same as create(force?
|
default RaftClientReply |
create(long timeoutMs)
The same as create(0, timeoutMs).
|
RaftClientReply |
create(long creationGap,
long timeoutMs)
Trigger to create a snapshot.
|
default RaftClientReply create(long timeoutMs) throws IOException
IOExceptiondefault RaftClientReply create(boolean force, long timeoutMs) throws IOException
IOExceptionRaftClientReply create(long creationGap, long timeoutMs) throws IOException
creationGap - When (creationGap > 0) and (astAppliedIndex - lastSnapshotIndex < creationGap),
return lastSnapshotIndex; otherwise, take a new snapshot and then return its index.
When creationGap == 0, use the server configured value as the creationGap.RaftClientReply.isSuccess() is true,
RaftClientReply.getLogIndex() is the snapshot index fulfilling the operation.IOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.