Skip to end of metadata
Go to start of metadata

Snapshots are serialized versions of your whole object graph. The default implementation of Prevayler writes them using Java serialization, but you can create them using different serialization methods (e.g., writing to an XML file). This can be accomplished by using different SnapshotManagers, and handing them to your PrevaylerFactory.

The default SnapshotManager uses the same file name conventions as the PersistentJournal, which writes Transaction Journals. That is, file names are always exactly 28 characters long, are numbered sequentially (e.g., 0000000000000000183.snapshot), and contain a serialized version of your prevalent system.

Labels
  • None