-
April 13th, 2018, 09:12 PM
#1
Adapter snapshot lifecycle
Hi,
I just wanted to clarify when the snapshot items will be discarded by the kernel. what is the timeout or lifecycle for it.
My understanding
1. once all active subscriptions for that item is unsubscribed - does it happens the next second or we have a timeout for it
2. explicitly calling the clearSnapshot method.
Thanks
Rajesh
-
April 16th, 2018, 09:09 AM
#2
Hi Rajesh,
Your understanding is correct, but point 1 deserves some clarifications.
In general, when all subscriptions for an item are terminated through unsubscriptions, the subscription is no longer maintained by the Server, which implies three consequences:- unsubscribe() is invoked to the Data Adapter;
- the item snapshot is discarded;
- upon the next subscription, subscribe() will be invoked to the Data Adapter.
This is done immediately, with no timeout.
However, if a session is terminated without explicit unsubscriptions of the item, a timeout is applied to each of these items, which can be configured through the <subscription_timeout_millis> element.
Note that, in some cases, a timeout is applied to an unresponsive session before stating that it is terminated (see <session_timeout_millis> and <session_recovery_millis>). In this case, the longer of the two timeouts is applied to the items.
-
April 16th, 2018, 04:23 PM
#3
Thank you , I am clear now.
Similar Threads
-
By lizamare in forum Adapter SDKs
Replies: 1
Last Post: April 17th, 2015, 09:59 AM
-
By Dejan Milosevic in forum Adapter SDKs
Replies: 5
Last Post: July 31st, 2014, 03:06 PM
-
By RichPratt in forum Adapter SDKs
Replies: 7
Last Post: June 7th, 2010, 09:38 AM
-
By sukhdev in forum Adapter SDKs
Replies: 3
Last Post: August 1st, 2007, 08:44 AM
-
By churrusco in forum General
Replies: 2
Last Post: May 4th, 2007, 03:19 PM
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:05 PM.
Bookmarks