-
October 17th, 2022, 05:18 PM
#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.
-
October 17th, 2022, 05:32 PM
#2
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
-
October 18th, 2022, 08:42 AM
#3
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
-
October 19th, 2022, 02:00 PM
#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.
-
October 19th, 2022, 02:16 PM
#5
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
-
October 19th, 2022, 06:23 PM
#6
Giuseppe,
Ok good. Thanks for all the details. Our team appreciates all your help.
Raleigh
Similar Threads
-
By rvkvino in forum General
Replies: 7
Last Post: February 3rd, 2017, 02:37 PM
-
By cvikander in forum Adapter SDKs
Replies: 2
Last Post: April 28th, 2014, 02:23 PM
-
By ehsank in forum General
Replies: 1
Last Post: December 30th, 2013, 09:32 AM
-
Replies: 1
Last Post: August 5th, 2013, 10:09 AM
-
By rsouissi in forum Adapter SDKs
Replies: 6
Last Post: May 30th, 2007, 11:47 AM
Tags for this Thread
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 03:33 AM.
Bookmarks