public abstract class MongoDbProjection extends ProjectionSnapshot
eventStore, latestJournalidReceived, log| Constructor and Description |
|---|
MongoDbProjection(akka.actor.ActorRef eventStore,
com.mongodb.MongoClient client) |
| 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() |
protected void |
saveDataToGridFS() |
void |
saveSnapshot() |
protected abstract byte[] |
serializeData() |
onReceivedispatchToCorrectEventHandler, getSubscribe, handleCall, isSubscribePhasepublic MongoDbProjection(akka.actor.ActorRef eventStore,
com.mongodb.MongoClient client)
public void preStart()
preStart in interface akka.actor.ActorpreStart in class ProjectionSnapshotpublic void saveSnapshot()
saveSnapshot in class ProjectionSnapshotpublic void loadSnapshot()
loadSnapshot in class ProjectionSnapshotprotected void saveDataToGridFS()
protected abstract byte[] serializeData()
protected abstract void deSerializeData(byte[] bytes)
protected abstract String getSnapshotDataVersion()
Copyright © 2014. All rights reserved.