Archived
This forum has been archived. Please start a new discussion on GitHub.
At client site, how to set the timeout parameter for remote call?
Jiangyubao
in Help Center
Hi, all.
For example, I deploy a server application, and the service method is:
void hello(){
Thread.sleep(20000);//sleep 20 s
}
I use a client to connect to the server, and invoke the method, and I want to set the timeout parameter:
if this call is not return in 1000ms, abandon this call, or throw a runtime exception.
How to resolve this problem?
Thanks!
For example, I deploy a server application, and the service method is:
void hello(){
Thread.sleep(20000);//sleep 20 s
}
I use a client to connect to the server, and invoke the method, and I want to set the timeout parameter:
if this call is not return in 1000ms, abandon this call, or throw a runtime exception.
How to resolve this problem?
Thanks!
0
Comments
-
0
