How attribute of WatchOptions works? (xServer1)
Posted: Fri Aug 03, 2018 6:16 am
Hi there,
I am trying to use Asynchronous methods of xServer and did some tests with xTour method "startPlanBasicTours()".
Need to understand the behavior of WatchOptions's attribute "progressUpdatePeriod" & "maximumPollingPeriod".
Because I am unable to understand after reading it from API and with my tests outcome.
After my tests, it seems both are working same.
My cases and there outcome:
Case1:
progressUpdatePeriod = 60000ms
maximumPollingPeriod = 60000ms
WatchJob has returned response in 1 minute
Case2.1:
progressUpdatePeriod = 10000ms
maximumPollingPeriod = 60000ms
WatchJob has returned response in 10 seconds
Case2.2:
progressUpdatePeriod = 60000ms
maximumPollingPeriod = 10000ms
WatchJob has returned response in 10 seconds
Case3.1:
progressUpdatePeriod = 0ms
maximumPollingPeriod = 60000ms
WatchJob has returned response instantly
Case3.2:
progressUpdatePeriod = 60000ms
maximumPollingPeriod = 0ms
WatchJob has returned response instantly
Case4:
progressUpdatePeriod = 0ms
maximumPollingPeriod = 0ms
WatchJob has returned response instantly
As per observation with the above cases, I found no difference in use of both attributes.
Could you please explain the difference between "progressUpdatePeriod" & "maximumPollingPeriod" and their affects.
Thanks in advance
I am trying to use Asynchronous methods of xServer and did some tests with xTour method "startPlanBasicTours()".
Need to understand the behavior of WatchOptions's attribute "progressUpdatePeriod" & "maximumPollingPeriod".
Because I am unable to understand after reading it from API and with my tests outcome.
After my tests, it seems both are working same.
My cases and there outcome:
Case1:
progressUpdatePeriod = 60000ms
maximumPollingPeriod = 60000ms
WatchJob has returned response in 1 minute
Case2.1:
progressUpdatePeriod = 10000ms
maximumPollingPeriod = 60000ms
WatchJob has returned response in 10 seconds
Case2.2:
progressUpdatePeriod = 60000ms
maximumPollingPeriod = 10000ms
WatchJob has returned response in 10 seconds
Case3.1:
progressUpdatePeriod = 0ms
maximumPollingPeriod = 60000ms
WatchJob has returned response instantly
Case3.2:
progressUpdatePeriod = 60000ms
maximumPollingPeriod = 0ms
WatchJob has returned response instantly
Case4:
progressUpdatePeriod = 0ms
maximumPollingPeriod = 0ms
WatchJob has returned response instantly
As per observation with the above cases, I found no difference in use of both attributes.
Could you please explain the difference between "progressUpdatePeriod" & "maximumPollingPeriod" and their affects.
Thanks in advance