Package io.aeron.cluster
Class RecordingLog.Snapshot
java.lang.Object
io.aeron.cluster.RecordingLog.Snapshot
- Enclosing class:
- RecordingLog
Representation of a snapshot entry in the
RecordingLog.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longIdentity of the leadership term.final longPosition the log has reached for the snapshot.final longIdentity of the recording in the archive for the snapshot.final intIdentity of the service associated with the snapshot.final longThe log position at the base of the leadership term.final longTimestamp for the cluster clock in the time units configured for the cluster at time of the snapshot. -
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(long recordingId, long leadershipTermId, long termBaseLogPosition, long logPosition, long timestamp, int serviceId) A snapshot entry in theRecordingLog. -
Method Summary
-
Field Details
-
recordingId
public final long recordingIdIdentity of the recording in the archive for the snapshot. -
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 snapshot. -
timestamp
public final long timestampTimestamp for the cluster clock in the time units configured for the cluster at time of the snapshot. -
serviceId
public final int serviceIdIdentity 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 theRecordingLog.- 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