public class DataStreamReplyHeader extends DataStreamPacketHeader implements DataStreamReply
DataStreamPacketHeader, bytesWritten and flags.| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface DataStreamReplypublic boolean isSuccess()
isSuccess in interface DataStreamReplypublic Collection<org.apache.ratis.proto.RaftProtos.CommitInfoProto> getCommitInfos()
getCommitInfos in interface DataStreamReplyCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.