2
如何查询akka-persistence中的旧快照?Akka-Persistence:如何获取快照
我可以看到,SnapshotStore
有一个LoadSnapshot
消息是私人可用的,但无法用其他方式调用。
存在snapshotter
界面 - >loadSnapshot
但是这给出了一个回调的演员,而不是我所需要的。
/**
* Instructs the snapshot store to load the specified snapshot and send it via an [[SnapshotOffer]]
* to the running [[PersistentActor]].
*/
def loadSnapshot(persistenceId: String, criteria: SnapshotSelectionCriteria, toSequenceNr: Long) =
snapshotStore ! LoadSnapshot(persistenceId, criteria, toSequenceNr)
我基本上需要一种方式ask
快照存储给我快照,我需要。
有没有办法做到这一点?为什么它被明确隐私而不可回收?