public final class DataStreamClientImpl.DataStreamOutputImpl extends Object implements DataStreamOutputRpc
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<DataStreamReply> |
closeAsync() |
RaftClientRequest |
getHeader() |
CompletableFuture<DataStreamReply> |
getHeaderFuture()
Get the future of the header request.
|
CompletableFuture<RaftClientReply> |
getRaftClientReplyFuture()
Return the future of the
RaftClientReply
which will be received once this stream has been closed successfully. |
WritableByteChannel |
getWritableByteChannel() |
CompletableFuture<DataStreamReply> |
writeAsync(ByteBuffer src,
Iterable<WriteOption> options)
Send out the data in the source buffer asynchronously.
|
CompletableFuture<DataStreamReply> |
writeAsync(org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf src,
Iterable<WriteOption> options) |
CompletableFuture<DataStreamReply> |
writeAsync(FilePositionCount src,
WriteOption... options)
Send out the data in the source file asynchronously.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteAsync, writeAsync, writeAsyncclosepublic CompletableFuture<DataStreamReply> writeAsync(org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf src, Iterable<WriteOption> options)
public CompletableFuture<DataStreamReply> writeAsync(ByteBuffer src, Iterable<WriteOption> options)
DataStreamOutputwriteAsync 在接口中 DataStreamOutputsrc - the source buffer to be sent.options - - options specifying how the data was writtenpublic CompletableFuture<DataStreamReply> writeAsync(FilePositionCount src, WriteOption... options)
DataStreamOutputwriteAsync 在接口中 DataStreamOutputsrc - the source file with the starting position and the number of bytes.options - options specifying how the data was writtenpublic CompletableFuture<DataStreamReply> closeAsync()
closeAsync 在接口中 CloseAsync<DataStreamReply>public RaftClientRequest getHeader()
public CompletableFuture<DataStreamReply> getHeaderFuture()
DataStreamOutputRpcgetHeaderFuture 在接口中 DataStreamOutputRpcpublic CompletableFuture<RaftClientReply> getRaftClientReplyFuture()
DataStreamOutputRaftClientReply
which will be received once this stream has been closed successfully.
Note that this method does not trigger closing this stream.getRaftClientReplyFuture 在接口中 DataStreamOutputRaftClientReply.public WritableByteChannel getWritableByteChannel()
getWritableByteChannel 在接口中 DataStreamOutputWritableByteChannel view of this DataStreamOutput.Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.