Class RecordingLog.Snapshot

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

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

    Fields
    Modifier and Type
    Field
    Description
    final long
    Identity of the leadership term.
    final long
    Position the log has reached for the snapshot.
    final long
    Identity of the recording in the archive for the snapshot.
    final int
    Identity of the service associated with the snapshot.
    final long
    The log position at the base of the leadership term.
    final long
    Timestamp for the cluster clock in the time units configured for the cluster at time of the snapshot.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Snapshot(long recordingId, long leadershipTermId, long termBaseLogPosition, long logPosition, long timestamp, int serviceId)
    A snapshot 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 snapshot.
    • 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 snapshot.
    • timestamp

      public final long timestamp
      Timestamp for the cluster clock in the time units configured for the cluster at time of the snapshot.
    • serviceId

      public final int serviceId
      Identity of the service associated with the snapshot.
  • Constructor Details

    • Snapshot

      public Snapshot(long recordingId, long leadershipTermId, long termBaseLogPosition, long logPosition, long timestamp, int serviceId)
      A snapshot entry in the RecordingLog.
      Parameters:
      recordingId - of the entry in an archive.
      leadershipTermId - in which the snapshot was taken.
      termBaseLogPosition - position of the log over leadership terms at the beginning of this term.
      logPosition - position reached when the entry was snapshot was taken.
      timestamp - as which the snapshot was taken.
      serviceId - which the snapshot belongs to.
  • Method Details