DRY ReplicatedEventSourcedBehavior.apply (#29454)

* and change signature of withEventPublishing and withDirectReplication
This commit is contained in:
Patrik Nordwall 2020-08-05 10:33:48 +02:00 committed by Christopher Batey
parent cd821fe3f8
commit 7348939ff4
9 changed files with 42 additions and 67 deletions

View file

@ -317,7 +317,7 @@ query is still needed as delivery is not guaranteed, but can be configured to po
events will arrive at the replicas through the cluster.
To enable this feature you first need to enable event publishing on the @scala[`EventSourcedBehavior`]@java[`ReplicatedEventSourcedBehavior`] with `withEventPublishing`
and then enable direct replication through `withDirectReplication()` on @apidoc[ReplicatedShardingSettings] (if not using
and then enable direct replication through `withDirectReplication(true)` on @apidoc[ReplicatedShardingSettings] (if not using
replicated sharding the replication can be run standalone by starting the @apidoc[ShardingDirectReplication] actor).
The "event publishing" feature publishes each event to the local system event bus as a side effect after it has been written,