radamkie at kdm.pl ()
2007-01-29 20:11:04 UTC
Hi,
I would like to ask about a situation when invoking a remote method
takes much longer time that I need. There is a way to "cancel" such
method by setting timeout. But I have a question, if there is still a sense
to try re-invoking method. For example:
I need to invoke remote method functionX() in 500 ms, which normally takes
10-40 ms. So I plan to do this in such way:
- invoke method functionX() with timeout set to 200 ms
- if invoking takes longer time then 200 ms then
"cancel" (by timer) and invoking the same method second time
and count that this time it takes less time then 300 ms.
Has it sense ? Mayby somebody have experience in it ?
Regards
R.
I would like to ask about a situation when invoking a remote method
takes much longer time that I need. There is a way to "cancel" such
method by setting timeout. But I have a question, if there is still a sense
to try re-invoking method. For example:
I need to invoke remote method functionX() in 500 ms, which normally takes
10-40 ms. So I plan to do this in such way:
- invoke method functionX() with timeout set to 200 ms
- if invoking takes longer time then 200 ms then
"cancel" (by timer) and invoking the same method second time
and count that this time it takes less time then 300 ms.
Has it sense ? Mayby somebody have experience in it ?
Regards
R.