public class FileEntityStoreMixin extends Object implements FileEntityStoreActivation, MapEntityStore, BackupRestore
FileEntityStoreActivation.Activator
MapEntityStore.MapChange, MapEntityStore.MapChanger, MapEntityStore.MapChanges
Constructor and Description |
---|
FileEntityStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
applyChanges(MapEntityStore.MapChanges changes) |
Stream<String> |
backup()
Backup entity states.
|
Stream<Reader> |
entityStates() |
Reader |
get(EntityReference entityReference) |
void |
initialize() |
void |
restore(Stream<String> stream)
Restore entity states.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
restore
public void initialize() throws Exception
initialize
in interface FileEntityStoreActivation
Exception
public Reader get(EntityReference entityReference) throws EntityStoreException
get
in interface MapEntityStore
entityReference
- The reference to the entity that we want to get.EntityStoreException
public void applyChanges(MapEntityStore.MapChanges changes) throws Exception
applyChanges
in interface MapEntityStore
Exception
public Stream<Reader> entityStates()
entityStates
in interface MapEntityStore
public Stream<String> backup()
BackupRestore
backup
in interface BackupRestore
public void restore(Stream<String> stream)
BackupRestore
restore
in interface BackupRestore
stream
- Stream of serialized entity states