Results 1 to 5 of 5

Hybrid View

  1. #1
    Member
    Join Date
    Aug 2009
    Location
    Noida
    Posts
    26
    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?
    Pradeep Kr Chahal
    Software Designer
    Expertise in implementing Market Interface, Push technology, Publish-Subscribe Architecture
    pkumar.chahal@gmail.com
    http://www.pradeepchahal.com

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    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.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 01:27 AM.