订阅资源中的 ExpirationCounter

ExpirationCounter in subscription resource

订阅资源中有一个名为 expirationCounter 的属性,在 TS-0001 中具有以下详细信息: "This attribute (notification policy) indicates that the subscriber wants to set the life of this subscription to a limit of a maximum number of notifications. When the number of notifications sent reaches the count of this counter, the subscription resource shall be deleted, regardless of any other policy."

expirationCounter 是否应该减少等于 notificationURI 的数量的计数 订阅 以及接收者何时成功收到通知?

例如: a 有 4 notificationURIexpirationCounter 设置为 100。当事件发生时,2 URI 成功接收通知,而 2 notificationURI 无法接通。

在这种情况下,expirationCounter 的值是多少?

在 TS-0001 中,第 10.2.10.7 节“通知消息处理过程”中详细描述了该过程。这里说

The expirationCounter shall be decreased by one when the Hosting CSE successfully sends the notification request to Receiver(s). If the counter reaches zero, the corresponding subscription resource shall be deleted.

这意味着 expirationCounter 会针对每个通知事件以及当它可以成功发送请求时减一,而不是针对它发送给一个或多个接收者的每个请求。它独立于 notificationURI.

中的 URI 数量

例如订阅的expirationCounter设置为10,则订阅在第10次被触发后被移除(假设请求发送成功) .