[
https://issues.apache.org/jira/browse/RATIS-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192535#comment-17192535
]
Tsz-wo Sze commented on RATIS-1057:
-----------------------------------
We may consider implementing it since Netty may be able to give a better
performance as in Streaming.
> NettyClientRpc supports async API
> ---------------------------------
>
> Key: RATIS-1057
> URL: https://issues.apache.org/jira/browse/RATIS-1057
> Project: Ratis
> Issue Type: Improvement
> Reporter: Rui Wang
> Assignee: Rui Wang
> Priority: Major
>
> Right now NettyClientRpc does not support
> {code:java}
> public interface RaftClientRpc extends Closeable {
> /** Async call to send a request. */
> default CompletableFuture<RaftClientReply>
> sendRequestAsync(RaftClientRequest request) {
> throw new UnsupportedOperationException(getClass() + " does not support
> this method.");
> }
> /** Async call to send a request. */
> default CompletableFuture<RaftClientReply>
> sendRequestAsyncUnordered(RaftClientRequest request) {
> throw new UnsupportedOperationException(getClass() + " does not support "
> + JavaUtils.getCurrentStackTraceElement().getMethodName());
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)