Results 1 to 6 of 6
  1. #1

    Cancel existing subscription

    Is there a method from and Adapter to cancel an existing subscription? We have a use case where the data point a subscription is 'monitoring' will expire. We want to force a cancellation of the subscription.

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

    Yes, please refer to this listener provided by the Lightstreamer server to receive requests about sessions and any asynchronous severe error notification:
    https://sdk.lightstreamer.com/ls-ada...ntrolListener)

    Please note that it is a feature relatively recently added and so you should make sure to use a version of the Java In-Process Adapters 7.2.0 or higher.
    If, on the other hand, you use a remote library, please note that not all libraries already have this feature.

    Regards,
    Giuseppe

  3. #3
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rthompson,

    Sorry, I missed to mention that in the specific case of terminating a subscription the callback to be invoked is in the TableInfo object paassed in the notifyNewTables.
    In particular the forceUnsubscription method.

    Anyway, you could also refer to this post for a general discussion on the topic: https://forums.lightstreamer.com/showthread.php?8786-Forcing-subscription-termination&highlight=forcing

    Regards,
    Giuseppe

  4. #4
    We are using C#. I didn't see the forceUnsubscription method on the TableInfo object. It isn't clear how to extend the class to add that functionality.

  5. #5
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi rthompson,

    Yes I can confirm that the feature has not been ported to c# remote library yet.
    In this case you should consider the workaround suggested in this post: https://forums.lightstreamer.com/sho...ll=1#post15065

    Regards,
    Giuseppe

  6. #6
    Giuseppe,
    Ok good. Thanks for all the details. Our team appreciates all your help.

    Raleigh

 

 

Similar Threads

  1. Replies: 7
    Last Post: February 3rd, 2017, 03:37 PM
  2. Replies: 2
    Last Post: April 28th, 2014, 03:23 PM
  3. Replies: 1
    Last Post: December 30th, 2013, 10:32 AM
  4. How to add LS to an existing website ?
    By JanA in forum General
    Replies: 1
    Last Post: August 5th, 2013, 11:09 AM
  5. Replies: 6
    Last Post: May 30th, 2007, 12:47 PM

Tags for this Thread

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 12:15 PM.