Merge pull request #22142 from inakov/wip-distributed-data-delete-api-update-new-inakov

Update DistributedData Delete API to include optional request context. Clear Pull Request
This commit is contained in:
Patrik Nordwall 2017-01-17 17:15:15 +01:00 committed by GitHub
commit 14e0a70b46
6 changed files with 95 additions and 41 deletions

View file

@ -244,7 +244,11 @@ to all nodes.
A deleted key cannot be reused again, but it is still recommended to delete unused
data entries because that reduces the replication overhead when new nodes join the cluster.
Subsequent ``Delete``, ``Update`` and ``Get`` requests will be replied with ``Replicator.DataDeleted``.
Subscribers will receive ``Replicator.DataDeleted``.
Subscribers will receive ``Replicator.Deleted``.
In the `Delete` message you can pass an optional request context in the same way as for the
`Update` message, described above. For example the original sender can be passed and replied
to after receiving and transforming `DeleteSuccess`.
.. includecode:: code/docs/ddata/DistributedDataDocSpec.scala#delete