Please provide the additional information for these classes.
Hello @Catherine Wong
MarketDataItemSub,MarketDataSubscriber andMarketDataSubscriberInterestSpec class are used in RFA Market Data Consumerapplication(SSL connection which default port is 8101).
The MarketDataItemSub class represents a subscription for asingle Market Data Item specified by item name(RIC) to request Market DataEvents i.e. data of the RIC. For the class details and its methods, pleaserefer to <RFA JavaPackage>\Legacy\Docs\refman\rfalegacy_java\com\reuters\rfa\session\MarketDataItemSub.html.
The MarketDataSubscriberInterestSpec interface represents aninterest in receiving events e.g. Service Events or Connection Events which arenot related to Market Data Events. For the class details and its methods,please refer to <RFA JavaPackage>\Legacy\Docs\refman\rfalegacy_java\com\reuters\rfa\session\MarketDataSubscriberInterestSpec.html
TheMarketDataSubscriber class provides a proxy to make market data subscriptionsfor a MarketDataItemSub or register for a MarketDataSubscriberInterestSpec. Forthe class details and its methods, please refer to <RFA JavaPackage>\Legacy\Docs\refman\rfalegacy_java\com\reuters\rfa\session\MarketDataSubscriber.html
For example:
//Create a MarketDataSubscriber event source using the Session reference //and calls the createEventSource() method with EventSource.MARKET_DATA_SUBSCRBER typeMarketDataSubscriber _marketDataSubscriber =(MarketDataSubscriber)_session.createEventSource(EventSource.MARKET_DATA_SUBSCRIBER,"myMarketDataSubscriber");//Create MarketDataSubscriberInterestSpec and //set which the application interests i.e. setMarketDataSvcInterest(true) to receive Service Events//setConnectionInterest(true) to receive Connection EventsMarketDataSubscriberInterestSpec marketDataSubscriberInterestSpec = new MarketDataSubscriberInterestSpec();marketDataSubscriberInterestSpec.setMarketDataSvcInterest(true);marketDataSubscriberInterestSpec.setConnectionInterest(true); //register for MarketDataSubscriberInterestSpec Handle _mdsClientHandle = _marketDataSubscriber.registerClient(_eventQueue,marketDataSubscriberInterestSpec,myClient, null);
//create MarketDataItemSubMarketDataItemSub marketDataItemSub = new MarketDataItemSub();//itemName is the RIC e.g. TRI.NmarketDataItemSub.setItemName(itemName);//set service that the application requests data frommarketDataItemSub.setServiceName(_serviceName);//use _marketDataSubscriber which has been created in the source code of the first bullet to make market data subscriptions_marketDataSubscriber.subscribe(_eventQueue, marketDataItemSub, myClient, null);
Please refer to MDSubDemo application which demonstrates how touse these classes. The application is in <RFA JavaPackage>\Legacy\Examples\com\reuters\rfa\legacyexample\session\mdsub\
For details of developing RFA Market Data applications, pleaserefer to RFAJ_DeveloperGuide.pdf in <RFA Java Package>\Legacy\Docs
Note: the latest RFA version providing these classes andtheirs documents are 7.6.1.L2 which can be downloaded at RFA Java DownloadsPage. RFA version 8.x or higher does not support MarketData interface using these classes so the classes and their documents have been removed from thepackages.