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
Question by Raymond · Apr 06, 2017 at 10:49 PM · treprfarfa-api

Resume after a COMPLETION EVENT

Hi ,

When this is a completion event update for a ric,
It seems the pricing stream for that ric will be stopped.
and it cannot resume after the ric status become "OPEN"
We have to restart the program to resume.

Can we trigger the "resume" in program to handle this case , thanks

we are using RFA version (Version: 8.0.0.E2.all)

public void processEvent(Event event)
{
if (event.getType() == Event.COMPLETION_EVENT)
{
System.out.println(_className + ": Receive a COMPLETION_EVENT, " + event.getHandle() + " "+ event.getInterestSpec().toString());
return;
}
}

People who like this

0 Show 0
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.

5 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pimchaya.wongrukun01 · Apr 07, 2017 at 04:46 AM

Hello @Raymond

A Completion Event is a specific type of Event guaranteed to be the last Event.

The Completion Event notifies the application that the event stream is closed. The application does not receive any data or any event from this stream any more. That's why you saw the pricing stream for that ric be stopped. To get data again, the application has to re-subscribe the item/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
Answer by Raymond · Apr 07, 2017 at 05:25 AM

Thanks Pimchaya

Can you suggest the way to re-subscribe the item ?

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
pimchaya.wongrukun01 ♦♦ · Apr 07, 2017 at 06:17 AM 0
Share

Hello @Raymond

Re-subscribing the item is sending an item request again. It is the same way as you subscribe an item after logging in successfully. After you re-subscribe the item, new Handle instance will be returned from OMMConsumer.registerClient(..)

For example: to re-subscribe an item in StarterConsumer example shipped with RFA Java package(<RFA Java Package>\Examples\com\reuters\rfa\example\omm\cons), call ItemManager.sendRequest();

avatar image
REFINITIV
Answer by umer.nalla · Apr 07, 2017 at 07:12 AM

Hi @Raymond

It would also be useful to understand why you are getting a Completion event in the first place?

Are you doing snapshot request, or are you unregistering interest in the instrument? Or is the server closing the instrument off?

If the server is closing off the instrument for some reason, then it may not be worth re-requesting the instrument immediately or after a while. E.g. if an instrument has expired then there would be no point re-requesting it again.

Do you get any meaningful status msg codes / text prior to the completion event?

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
Answer by Raymond · Apr 09, 2017 at 10:07 PM

Hi Umer,

Our RFA program is getting the redistribute rate from a Reuters application.

We found that the redistribute rate status will become "CLOSED" after the weekend restart for the Reuters application and the RFA program cannot resume automatically.

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 umer.nalla · Apr 10, 2017 at 06:01 AM

hi @Raymond

Do you know how long the weekend restart of the provider application takes, before the instruments are available again?

If so, then you could set a timer (once you receive Completion events) to re-subscribe the instruments after that time period has elapsed. You can re-subscribe by re-registering interest in the instruments - as described by my colleague Pimchaya in his comments earlier.

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.

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 >
9 People are following this question.

Related Questions

RFA suspect state

Connecting to vpn via windows service not working

How to prevent downloading RWFTEST1

Additional digits seen on price fields with RFA build app

RFA Daily Reset

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges