In the traditional way for every client request I get servlet response.
something like this:
HttpResponse response = client.execute(request)
Now I want to get updates from my servlet every time interval.
How can i catch the server s response?
比较一下,当我忙 the地工作时,《刑法》就是这样:
public void run()
{
while(true)
{
Object serverMessage = inStream.readObject();
// Do somthing with serverMessage
}
}