How the real time data we are going to get using RFA Api.Whether it is using cal back function to get real time data
New posts are disabled while we improve the user experience.
You can browse the site, or for urgent issues, raise a query at MyAccount.
Hi @harik
Please work through the whole tutorials at least as far as step 7 to get a fuller understanding of how the API works.
You will note the MyClient class of the example which is derived from rfa::common::Client and has to implement the processEvent callback method.
The example code specifies the above class instance as the event handler when it calls registerClient for the Login Request and the MarketData item request.
Therefore as and when the API receives events from the server, the API will call the processEvent handled with the event payload and the processEvent will process the event.
The dispatching of these events is controlled by the example's RdmApp:run() method which is running and dispatching events in the main application thread.
The processEvent is called by the API in the API thread context - asynchronously as it receives events from the server.
Hi @harik
RFA event model uses event handlers/callbacks to process events received from the server
See RFA C++ Tutorials for more details. If you are using RFA Java or RFA .Net you can access similar tutorials by clicking the Available Editions: Java, .NET links.
IF you are writing a new application and using C++ or Java then I strongly recommend you use the Elektron Message API of the ElektronSDK -which is our strategic offering and much easier to learn and implement. RFA is now feature-complete / in maintenance mode.
@Umar Nala I gone through the rfa examples and examples shows direct api calling instead of call back functions.Shall we have some call back examples
Probably a call will help us
RFA C++ and step 4 in download examples .I also checked examples in setup .There are also straight forward call instead of call back
Apart from a suggestion from Umer. I would suggest you find the details about the Event Distribution Model from RFA Developer Guide(RFA_DevelopersGuide.pdf) which provided in RFA C++ packages(under folder <RFA Install Folder>/Docs).
Section 6.4.1 Event Distribution Model and 10.1.1.3 Process Event in Client has the information about the processEvent callback.