{"comment":{"url":"https://api.github.com/repos/kofemann/oncrpc4j/comments/10937165","html_url":"https://github.com/kofemann/oncrpc4j/commit/b12889fc408b65b7be13c51bb70c07a6d742d46b#commitcomment-10937165","id":10937165,"user":{"login":"kofemann","id":575965,"avatar_url":"https://avatars.githubusercontent.com/u/575965?v=3","gravatar_id":"","url":"https://api.github.com/users/kofemann","html_url":"https://github.com/kofemann","followers_url":"https://api.github.com/users/kofemann/followers","following_url":"https://api.github.com/users/kofemann/following{/other_user}","gists_url":"https://api.github.com/users/kofemann/gists{/gist_id}","starred_url":"https://api.github.com/users/kofemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kofemann/subscriptions","organizations_url":"https://api.github.com/users/kofemann/orgs","repos_url":"https://api.github.com/users/kofemann/repos","events_url":"https://api.github.com/users/kofemann/events{/privacy}","received_events_url":"https://api.github.com/users/kofemann/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"b12889fc408b65b7be13c51bb70c07a6d742d46b","created_at":"2015-04-28T10:07:25Z","updated_at":"2015-04-28T10:07:25Z","body":"could you please check that branch https://github.com/kofemann/oncrpc4j/tree/async-client-v2 has expected behavior.\r\n\r\nTo use as fire-and-forget:\r\n\r\n Future<RpcReply> r = call.call(0, XdrVoid.XDR_VOID);\r\nor  simply\r\ncall.call(0, XdrVoid.XDR_VOID);\r\n\r\nfor call back:\r\n\r\n\r\n        CompletionHandler<RpcReply, XdrTransport> callback = new CompletionHandler<RpcReply, XdrTransport>() {\r\n\r\n            @Override\r\n            public void completed(RpcReply reply, XdrTransport attachment) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void failed(Throwable exc, XdrTransport attachment) {\r\n\r\n            }\r\n        };\r\n\r\ncall.call(0, , XdrVoid.XDR_VOID, callback);\r\n\r\nThe call back will be executed in the selector thread. E.q, for heavy-duti work you may want to use submit processing into a thread pool. "}}