public static interface RaftLog.EntryWithData
RaftProtos.LogEntryProto.hasStateMachineLogEntry() and
RaftProtos.StateMachineLogEntryProto.hasStateMachineEntry() are true,
the RaftProtos.StateMachineEntryProto is removed from the original RaftProtos.LogEntryProto
before appending to this log.
The RaftProtos.StateMachineEntryProto is stored by the state machine but not in this log.
When reading the log entry, this class rebuilds the original RaftProtos.LogEntryProto
containing both the log entry and the state machine data.| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.ratis.proto.RaftProtos.LogEntryProto |
getEntry(TimeDuration timeout) |
int |
getSerializedSize() |
int getSerializedSize()
org.apache.ratis.proto.RaftProtos.LogEntryProto getEntry(TimeDuration timeout) throws RaftLogIOException, TimeoutException
RaftProtos.LogEntryProto containing both the log entry and the state machine data.RaftLogIOExceptionTimeoutExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.