long polling netty nio framework java

前端 未结 3 1311
野趣味
野趣味 2021-02-06 00:29

How can I do long-polling using netty framework? Say for example I fetch http://localhost/waitforx

but waitforx is asynchronous because it has

3条回答
  •  别跟我提以往
    2021-02-06 01:07

    You could also do the following in [sfnrpc]: http://code.google.com/p/sfnrpc

    Object object = RPCClient.getInstance().invoke("#URN1","127.0.0.1:6878","echo",true,60,"", objArr,classArr, sl);
    

    The true causes communication to be synchronous.

提交回复
热议问题