public static final class RecordingLog.Snapshot extends Object
RecordingLog.| Modifier and Type | Field and Description |
|---|---|
long |
leadershipTermId
Identity of the leadership term.
|
long |
logPosition
Position the log has reached for the snapshot.
|
long |
recordingId
Identity of the recording in the archive for the snapshot.
|
int |
serviceId
Identity of the service associated with the snapshot.
|
long |
termBaseLogPosition
The log position at the base of the leadership term.
|
long |
timestamp
Timestamp for the cluster clock in the time units configured for the cluster at time of the snapshot.
|
| Constructor and Description |
|---|
Snapshot(long recordingId,
long leadershipTermId,
long termBaseLogPosition,
long logPosition,
long timestamp,
int serviceId)
A snapshot entry in the
RecordingLog. |
public final long recordingId
public final long leadershipTermId
public final long termBaseLogPosition
public final long logPosition
public final long timestamp
public final int serviceId
public Snapshot(long recordingId,
long leadershipTermId,
long termBaseLogPosition,
long logPosition,
long timestamp,
int serviceId)
RecordingLog.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.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.