Results 1 to 4 of 4

Hybrid View

  1. #1
    Hi,

    Just for a better understanding of the issue, assuming I have an item AAPL, what would be a best practice to remove the item when no subscribers for this item any more?
    for example would a ConcurentHashMap<ItemNameString, CounterInteger> subscriptions... would be a good way to go?

    Thanks,

    Gal

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Gal,

    Please note that you do not need to keep track of the number of users subscribed to an item only for purpose of remove it when there are not any more, this is a task already performed by Lightstreamer server.

    When there are no more users subscribed to a specific item the server will send an Unsubscribe (USB) message to to your adapter, and faced with this message, you can remove the item.

    Hope that helps.

 

 

Similar Threads

  1. Hello World Remote Socket Adapter
    By kclerc in forum Adapter SDKs
    Replies: 7
    Last Post: April 12th, 2010, 11:40 AM
  2. Replies: 1
    Last Post: May 21st, 2009, 09:41 AM
  3. Replies: 4
    Last Post: February 4th, 2009, 11:45 PM
  4. Replies: 0
    Last Post: January 10th, 2007, 04:03 PM
  5. LightStreamer and Sockets - newbie question
    By jsharpe in forum Adapter SDKs
    Replies: 3
    Last Post: September 28th, 2006, 02:03 PM

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 09:54 AM.