Package io.aeron.cluster
Class RecordingLog.Log
java.lang.Object
io.aeron.cluster.RecordingLog.Log
- Enclosing class:
- RecordingLog
Representation of a log entry in the
RecordingLog.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intInitial term identity of the stream captured for the recording.final longIdentity of the leadership term.final longPosition the log has reached for the term which can beAeronArchive.NULL_POSITIONwhen not committed.final intTransport MTU length of the stream captured for the recording.final longIdentity of the recording in the archive for the log.final intTransport session identity of the stream captured for the recording.final longStart position of the recording captured in the archive.final longStop position of the recording captured in the archive.final longThe log position at the base of the leadership term.final intTransport term buffer length of the stream captured for the recording. -
Constructor Summary
ConstructorsConstructorDescriptionLog(long recordingId, long leadershipTermId, long termBaseLogPosition, long logPosition, long startPosition, long stopPosition, int initialTermId, int termBufferLength, int mtuLength, int sessionId) Construct a representation of a log entry in theRecordingLog. -
Method Summary
-
Field Details
-
recordingId
public final long recordingIdIdentity of the recording in the archive for the log. -
leadershipTermId
public final long leadershipTermIdIdentity of the leadership term. -
termBaseLogPosition
public final long termBaseLogPositionThe log position at the base of the leadership term. -
logPosition
public final long logPositionPosition the log has reached for the term which can beAeronArchive.NULL_POSITIONwhen not committed. -
startPosition
public final long startPositionStart position of the recording captured in the archive. -
stopPosition
public final long stopPositionStop position of the recording captured in the archive. -
initialTermId
public final int initialTermIdInitial term identity of the stream captured for the recording. -
termBufferLength
public final int termBufferLengthTransport term buffer length of the stream captured for the recording. -
mtuLength
public final int mtuLengthTransport MTU length of the stream captured for the recording. -
sessionId
public final int sessionIdTransport session identity of the stream captured for the recording.
-
-
Constructor Details
-
Log
public Log(long recordingId, long leadershipTermId, long termBaseLogPosition, long logPosition, long startPosition, long stopPosition, int initialTermId, int termBufferLength, int mtuLength, int sessionId) Construct a representation of a log entry in theRecordingLog.- Parameters:
recordingId- for the recording in an archive.leadershipTermId- identity for the leadership term.termBaseLogPosition- log position at the base of the leadership term.logPosition- position the log has reached for the term.startPosition- of the recording captured in the archive.stopPosition- of the recording captured in the archive.initialTermId- of the stream captured for the recording.termBufferLength- of the stream captured for the recording.mtuLength- of the stream captured for the recording.sessionId- of the stream captured for the recording.
-
-
Method Details