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

Best Answer

  • @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.