< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
Hi Scott, I’ve implemented 1
already, I just thought about finding a more efficient method and avoid keeping
track of ServerSubscriptions on my own. applyToAllServerSubscriptions is of course not the right thing for updating specific
ServerSubscriptions but I just found applyToServerSubscriptions(aor,
eventType…), probably this is
what I’m looking for. Though I not quite sure how to use it (i.e. how to
declare the apply function)… Matthias From: Scott Godin
[mailto:slgodin@xxxxxxxxxxxx] I use method 1 frequently
– it offers good flexibility without needing to modify DUM. Note: There is also an
applyToAllServerSubscriptions function in DUM that you may find useful.
But it will involve an iteration across all subscriptions to find the ones you
want. From:
resiprocate-devel-bounces@xxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxx] On Behalf Of Matthias
Moetje Hi, I am currently trying to find the best way to track and
update ServerSubscriptions. In order to perform updates I need to be able to
find all subscriptions which are matching a certain key (AOR). I am thinking about the following two concepts: 1.
Keep my own map of ServerSubscriptions. Add to the map
on createAppDialogSet and remove
from the map when the dialogset is destroyed 2.
Rely on the list that is kept by dum (mServerSubscriptions) and use mDum.mServerSubscriptions.equal_range(key) to
retrieve all subscriptions matching a certain AOR The problem with 1 is that it creates additional overhead.
The problem with 2 is that mServerSubscriptions
is a private member of DialogUsageManager.
There is a function findServerSubscription
but is takes a DialogId as a
parameter, so this doesn’t help much. What should I do? Should I add a function findServerSubscriptions(Data key) to DialogUsageManager? Best regards, Freundliche Grüße, Matthias Moetje
|