How does the RMDS adapter respond to CLOSED and CLOSED_RECOVER?
book
Article ID: KB0076153
calendar_today
Updated On:
Description
How does the RMDS adapter respond to the status code CLOSED, CLOSED_RECOVER? Where can recoveryRetryInterval and recoveryRetryLimit parameters for the RMDS adapter?
Resolution
When the StreamBase Reuters RMDS subscribe adapter receives a market data item event with state == CLOSED, it emits a CLOSED event tuple and unsubscribes from the item. It does not do this for items that enter the CLOSED_RECOVER state under the assumption that this state is transient and therfore items in this state might eventually be re-opened.
The recoveryRetryInterval and recoveryRetryLimit parameters are session attributes and therefore are configured as key/value pairs under one of the session keys in the RFA configuration file (rfa-config.xml in the StreamBase adapter's sample). Below is a snippet of rfa-config.xml with these two parameters present with their default values:
<node name="SBSubscribeSession">
<map>
<entry key="connectionList" value="SSLConnection"/>
<entry key="recoveryRetryInterval" value="15000"/>
<entry key="recoveryRetryLimit" value="-1"/>
</map>
</node>
IF the values are not defined in the rfa-config.xml file then the defaults are:
15000 (retry every 15 seconds) and -1 (retry forever).
The RFA Configuration and Logging Guide describes these parameters as follows:
- Name: recoveryRetryInterval
- Description: How often (in milliseconds) the recovery is attempted for a subscription
- Type: Integer
- Default: 15000
- Range: 1000 - (231-1)
Note: For Market Data subscriptions only.
- Name: recoveryRetryLimit
- Description: Up to how many times the recovery attempts are made
- Type: Integer
- Default: -1
- Range: -1 - (231-1)
Note: If -1, then the session will retry forever, otherwise it will retry for any other value larger than 0. For Market Data subscriptions only.
Issue/Introduction
How does the RMDS adapter respond to CLOSED and CLOSED_RECOVER?
Feedback
thumb_up
Yes
thumb_down
No