Class RecordingLog.Log

java.lang.Object
io.aeron.cluster.RecordingLog.Log
Enclosing class:
RecordingLog

public static final class RecordingLog.Log extends Object
Representation of a log entry in the RecordingLog.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Initial term identity of the stream captured for the recording.
    final long
    Identity of the leadership term.
    final long
    Position the log has reached for the term which can be AeronArchive.NULL_POSITION when not committed.
    final int
    Transport MTU length of the stream captured for the recording.
    final long
    Identity of the recording in the archive for the log.
    final int
    Transport session identity of the stream captured for the recording.
    final long
    Start position of the recording captured in the archive.
    final long
    Stop position of the recording captured in the archive.
    final long
    The log position at the base of the leadership term.
    final int
    Transport term buffer length of the stream captured for the recording.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 the RecordingLog.
  • Method Summary

    Modifier and Type
    Method
    Description

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • recordingId

      public final long recordingId
      Identity of the recording in the archive for the log.
    • leadershipTermId

      public final long leadershipTermId
      Identity of the leadership term.
    • termBaseLogPosition

      public final long termBaseLogPosition
      The log position at the base of the leadership term.
    • logPosition

      public final long logPosition
      Position the log has reached for the term which can be AeronArchive.NULL_POSITION when not committed.
    • startPosition

      public final long startPosition
      Start position of the recording captured in the archive.
    • stopPosition

      public final long stopPosition
      Stop position of the recording captured in the archive.
    • initialTermId

      public final int initialTermId
      Initial term identity of the stream captured for the recording.
    • termBufferLength

      public final int termBufferLength
      Transport term buffer length of the stream captured for the recording.
    • mtuLength

      public final int mtuLength
      Transport MTU length of the stream captured for the recording.
    • sessionId

      public final int sessionId
      Transport 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 the RecordingLog.
      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