question

Upvotes
Accepted
39 4 5 11

RTSDK Java ETA WatchListOptions question

What's the impact on the performance from WatchListOptions::requestTimeout()? I found the following comment+code in RTSDL/ETA PerfTools RTSDK-2.0.3.L2.java.rrg/Java/Eta/Applications/PerfTools/src/main/java/com/refinitiv/eta/perftools/consperf/ConsumerThread.java :


// set request timeout to 0, request timers reduce performance
_role.watchlistOptions().requestTimeout(0);

Thank you

refinitiv-realtimejavaeta-apiwatchlist
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@RG1

Thanks for reaching out to us.

requestTimeout is used to set the time (in milliseconds) the watchlist waits for a response to a request. If set to 0, the API will wait for a response indefinitely so it will not create timers to wait for responses from the server.

For example, if the API doesn't receive a response to a request within the specified timeout, the API will send a new request message to the server. Therefore, the timeout can affect the performance of the application.

However, you need to make the requestTimeout configurable so users can change its value.

Please feel free to reach out if you have any further questions.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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