org.apache.geode.cache.Region.saveSnapshot()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.apache.geode.cache.Region.saveSnapshot方法的一些代码示例,展示了Region.saveSnapshot的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.saveSnapshot方法的具体详情如下:
包路径:org.apache.geode.cache.Region
类名称:Region
方法名:saveSnapshot

Region.saveSnapshot介绍

[英]Saves the data in this region in a snapshot file. The data is a "concurrent" snapshot in that modifications to the region while the snapshot is being written are not guaranteed to be included or excluded from the snapshot. In other words, if there are concurrent modifications to the region while the snapshot is being written, the snapshot may not reflect a consistent state of the entire region at any moment in time.
[中]将此区域中的数据保存在快照文件中。数据是一个“并发”快照,因为在写入快照时对区域的修改不保证包含在快照中或从快照中排除。换句话说,如果在写入快照时对区域进行了并发修改,则快照可能无法在任何时刻反映整个区域的一致状态。

代码示例

代码示例来源:origin: apache/geode

public void saveSnapshot(OutputStream outputStream) throws IOException {
 this.region.saveSnapshot(outputStream);
}

代码示例来源:origin: apache/geode

preSnapshotRegion.saveSnapshot(out);

代码示例来源:origin: apache/geode

preSnapshotRegion.saveSnapshot(out);

相关文章

微信公众号

最新文章

更多