public abstract class LevelDbProjection extends ProjectionSnapshot
eventStore, latestJournalidReceived, log| Modifier | Constructor and Description |
|---|---|
protected |
LevelDbProjection(akka.actor.ActorRef eventStore) |
|
LevelDbProjection(akka.actor.ActorRef eventStore,
String snapshotDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
deSerializeData(byte[] bytes) |
protected abstract String |
getSnapshotDataVersion()
Data version this projection uses
|
void |
loadSnapshot() |
void |
preStart() |
void |
saveSnapshot() |
protected abstract byte[] |
serializeData() |
void |
setSnapshotDirectory(String snapshotDirectory) |
onReceivedispatchToCorrectEventHandler, getSubscribe, handleCall, isSubscribePhasepublic LevelDbProjection(akka.actor.ActorRef eventStore,
String snapshotDirectory)
protected LevelDbProjection(akka.actor.ActorRef eventStore)
public void setSnapshotDirectory(String snapshotDirectory)
public void preStart()
preStart in interface akka.actor.ActorpreStart in class ProjectionSnapshotpublic void saveSnapshot()
saveSnapshot in class ProjectionSnapshotprotected abstract byte[] serializeData()
protected abstract String getSnapshotDataVersion()
public void loadSnapshot()
loadSnapshot in class ProjectionSnapshotprotected abstract void deSerializeData(byte[] bytes)
Copyright © 2014. All rights reserved.