-
November 23rd, 2010, 09:43 AM
#2
Hi,
subscription and selector-filtering (the one applied by the isSelected) happen in two very different moment in the life of a Lightstreamer adapter.
The subscription on the DataProvider for an item X is performed when the first client subscribes to such item X: after that the DataProvider should start producing updates for that item.
If other clients subscribe to item X the subscribe call is not issued on the DataProvider.
The Unsubscribe call for item X will be called on the DataProvider only when there are no more clients subscribed to such item.
The Subscribe will be called again on the first client that subscribes again to item X.
The isSelected method is called whenever a new update is injected by the DataProvider into its ItemEventListener. As you can see that method is bound to an item, an user and a selector: the method is called once per each client connected and subscribed to that item; so the method choose whenever to let the server send the update to a client or to block it.
HTH.
Similar Threads
-
By mnenchev in forum General
Replies: 5
Last Post: September 8th, 2009, 03:07 PM
-
By jamesclinton in forum Client SDKs
Replies: 2
Last Post: April 16th, 2007, 12:54 PM
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:17 PM.
Bookmarks