-
February 9th, 2010, 07:50 AM
#1
Hello Dario,
We are using "subscribeItems" method to subscribe. We want to confirm that after subscribing some items (say 10 items),and after some time if we need to subscribe one more item, should we make a separate call to subscribe this item? in this case every time we make separate call, we have to handle it's update in separate instance of handler (HandyTableListener) or Is there some other way to update subscribed item?
-
February 10th, 2010, 10:04 AM
#2
Calling subscribeItems for a list of items is just a more efficient alternative to calling subscribeItems, in a cycle, for each item in the list and supplying the same listener instance for all the calls.
The only difference is that, in the former case, the itemPos parameter used by various listener invocations has a meaningful value, whereas, in the latter case, it is always 1.
So, unless you really need the itemPos parameter to identify the item involved in each invocation (that is, itemName is not enough because duplicated subscriptions are possible),
you can provide the same listener instance to multiple calls to subscribeItems, each of which, in turn, can manage either single items or lists.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:27 AM.
Bookmarks