Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
REFINITIV
Question by Gurpreet · Nov 12, 2015 at 12:32 PM · rfaRFAJ

What is a "closure" in RFA?

People who like this

0 Show 1
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Steven McCoy ♦♦ · Nov 16, 2015 at 11:09 AM 0
Share

Please see Closure (computer programming) on Wikipedia.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by steven.peng · Nov 13, 2015 at 09:27 AM

Closure is used in RFA registerCllient() method to pass any application specific data to the processEvent() callback function. For example, we need to know the item name of a update event in order to apply the update data to the application data. However, Item name is only available in the AttributInfo object which is usuallyanly available in the Refresh event. Update events do not have AttributInfo unless requested specifically. We can pass the Item name when we subscribe the item:

Handle itemHandle = _mainApp.getOMMConsumer().registerClient(_mainApp.getEventQueue(),   ommItemIntSpec, this, itemName);

In ProcessEvent(), simply call getClosure() method to retrieve the itemName:

OMMItemEvent ie = (OMMItemEvent)event;
String _ric = (String) ie.getClosure();
System.out.println("ItemName:" + _ric);
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by wasin.waeosri · Nov 12, 2015 at 08:22 PM

Regarding the RFA Developer Guide, the closure object is a application-defined use. An application may supply a closure object on sending an Interest Specification. RFA returns the Closure in Events. A closure is a reference to an object supplied by the application.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Gurpreet ♦♦ · Nov 13, 2015 at 07:25 AM 0
Share

Thanks, but why is it needed. Is it mandatory for requesting market data.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
No one has followed this question yet.

Related Questions

Not able to use different position i.e. IP and hostname to connect to RFA other than localhost

Is there any way to identify a RIC is an EOD or not ?

Download RDMFieldDictionary from ELEKTRON_DD service

Different response for item not available

HI Team - I am trying to subscribe some Trade values using MARKET_BY_PRICE. Please can you advise me some example of RIC codes which I can use to get trades ?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges