Skip to content

Commit 3952070

Browse files
committed
Add behavior to reset() operation to make it more useful in practice
1 parent 3461e7a commit 3952070

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

up-l3/usubscription/v3/README.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,17 @@ When a client invokes the uSubscription service's `Reset()` operation, uSubscrip
471471
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`
472472
****
473473

474+
[.specitem,oft-sid="req~usubscription-reset-notification~1",oft-needs="impl,utest"]
475+
****
476+
When the `Reset()` function is called, after stored subscription information is flushed, uSubscription service *MUST* notify all subscribers and uEntities that registered for change notifications about the reset, by sending a messages of type `Update` for each subscribed/registered topic, with a subscription state of `UNSUBSCRIBED`.
477+
****
478+
479+
[.specitem,oft-sid="req~usubscription-reset-notification-clients~1",oft-needs="impl,utest"]
480+
****
481+
When the `Reset()` function is called, after all stored subscription information has been flushed and before `Update` notifications are sent, uSubscription service *MUST* clear the list of uEntities that have registered for subscription change notification messages (via `RegisterForNotifications()`), including any persistently stored registrations.
482+
****
483+
484+
474485
[.specitem,oft-sid="req~usubscription-reset-only-usubscription~1",oft-needs="impl,utest"]
475486
****
476487
When receiving a `Reset()` call from a source that is not another uSubscription services (i.e. from source URIs where uEntity ID (`ue_id`) does not equal _0x0_), uSubscription service *MUST* return a failure status message with {ucode_link} `PERMISSION_DENIED`.

0 commit comments

Comments
 (0)