T
- type of snapshot objectpublic interface SnapshotAwareService<T>
Modifier and Type | Method and Description |
---|---|
void |
restoreSnapshot(CPGroupId groupId,
long commitIndex,
T snapshot)
Restores the snapshot for specified
CPGroupId . |
T |
takeSnapshot(CPGroupId groupId,
long commitIndex)
Creates a snapshot for specified
CPGroupId . |
T takeSnapshot(CPGroupId groupId, long commitIndex)
CPGroupId
.
The snapshot object returned from this method will be stored among
the Raft log and it can be sent to other Raft nodes anytime. Therefore,
this method must not return a snapshot object that can mutate after
the takeSnapshot() call.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.