Skip to content

Commit 3461e7a

Browse files
Add behaviour to reset() operation to make it more useful in practice (eclipse-uprotocol#298)
1 parent ba0f3ca commit 3461e7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

up-l3/usubscription/v3/README.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,11 @@ The uSubscription service `Reset()` function *MUST* implement the corresponding
464464

465465
[.specitem,oft-sid="req~usubscription-reset~1",oft-needs="impl,utest"]
466466
****
467-
When the `Reset()` function is called, the uSubscription service *MUST* flush all stored subscription information, including any persistently stored subscriptions.
467+
When a client invokes the uSubscription service's `Reset()` operation, uSubscription service *MUST* (in this order)
468+
469+
1. clear all local and remote subscription state, including any associated persistence store
470+
2. clear the list of uEntities that have registered for subscription change notifications (via `RegisterForNotifications()`), including any associated persistence store
471+
3. send `Update` messages to each client subscribed to a topic or that has registered for notifications about a topic, with a subscription state of `UNSUBSCRIBED`
468472
****
469473

470474
[.specitem,oft-sid="req~usubscription-reset-only-usubscription~1",oft-needs="impl,utest"]

0 commit comments

Comments
 (0)