!per #3704 Persistence improvements
- Channel enhancements (#3773): - Live read models (#3776): - Batch-oriented journal plugin API (#3804): - Batching of confirmations and deletions - Message deletion enhancements (more efficient range deletions)
This commit is contained in:
parent
32b76adb9a
commit
f327e1e357
55 changed files with 3474 additions and 2191 deletions
|
|
@ -19,6 +19,7 @@ trait SnapshotStore extends Actor {
|
|||
import context.dispatcher
|
||||
|
||||
private val extension = Persistence(context.system)
|
||||
private val publish = extension.settings.internal.publishPluginCommands
|
||||
|
||||
final def receive = {
|
||||
case LoadSnapshot(processorId, criteria, toSequenceNr) ⇒
|
||||
|
|
@ -44,10 +45,10 @@ trait SnapshotStore extends Actor {
|
|||
sender ! evt // sender is processor
|
||||
case d @ DeleteSnapshot(metadata) ⇒
|
||||
delete(metadata)
|
||||
if (extension.publishPluginCommands) context.system.eventStream.publish(d)
|
||||
if (publish) context.system.eventStream.publish(d)
|
||||
case d @ DeleteSnapshots(processorId, criteria) ⇒
|
||||
delete(processorId, criteria)
|
||||
if (extension.publishPluginCommands) context.system.eventStream.publish(d)
|
||||
if (publish) context.system.eventStream.publish(d)
|
||||
}
|
||||
|
||||
//#snapshot-store-plugin-api
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue