public class DataStreamReplyHeader extends DataStreamPacketHeader implements DataStreamReply
DataStreamPacketHeader, bytesWritten and flags.| 构造器和说明 |
|---|
DataStreamReplyHeader(ClientId clientId,
org.apache.ratis.proto.RaftProtos.DataStreamPacketHeaderProto.Type type,
long streamId,
long streamOffset,
long dataLength,
long bytesWritten,
boolean success,
Collection<org.apache.ratis.proto.RaftProtos.CommitInfoProto> commitInfos) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getBytesWritten() |
Collection<org.apache.ratis.proto.RaftProtos.CommitInfoProto> |
getCommitInfos() |
boolean |
isSuccess() |
getDataLength, getSizeOfHeaderBodyLen, getSizeOfHeaderLengetClientId, getStreamId, getStreamOffset, getType, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientId, getDataLength, getStreamId, getStreamOffset, getTypepublic DataStreamReplyHeader(ClientId clientId, org.apache.ratis.proto.RaftProtos.DataStreamPacketHeaderProto.Type type, long streamId, long streamOffset, long dataLength, long bytesWritten, boolean success, Collection<org.apache.ratis.proto.RaftProtos.CommitInfoProto> commitInfos)
public long getBytesWritten()
getBytesWritten 在接口中 DataStreamReplypublic boolean isSuccess()
isSuccess 在接口中 DataStreamReplypublic Collection<org.apache.ratis.proto.RaftProtos.CommitInfoProto> getCommitInfos()
getCommitInfos 在接口中 DataStreamReplyCopyright © 2017–2023 The Apache Software Foundation. All rights reserved.