public interface MessageOutputStream extends CloseAsync<RaftClientReply>
Message(s) asynchronously.| 限定符和类型 | 方法和说明 |
|---|---|
default CompletableFuture<RaftClientReply> |
sendAsync(Message message)
The same as sendAsync(message, false).
|
CompletableFuture<RaftClientReply> |
sendAsync(Message message,
boolean endOfRequest)
Send asynchronously the given message to this stream.
|
close, closeAsyncCompletableFuture<RaftClientReply> sendAsync(Message message, boolean endOfRequest)
message - the message to be sent.endOfRequest - Is this an end-of-request?default CompletableFuture<RaftClientReply> sendAsync(Message message)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.