Represents the relevant information of a snapshot event in regard to the event log. It combines the actual event (in
serialized form) and the offset in bytes to use when reading from the event log.
- Allard Buijze
Instantiate a SnapshotEventEntry for the given
, which allows the given
number of bytes to be skipped when reading the Events file. The
is not stored directly, instead, a copy is used.
serializedEvent The bytes representing the serialized event object
sequenceNumber The sequence number of the snapshot
timeStamp The ISO8601 timestamp of the event
offset The offset that the event allows in the event log
Returns an input stream to read the serialized event. The InputStream does not have to be closed.
- An InputStream accessing the bytes.
Returns the sequence number of the snapshot event. This is the sequence number of the last regular event that was
included in this snapshot.
- the sequence number of the snapshot event
Returns the size of the serialized object (the number of bytes).
- the size of the serialized object in bytes.
The number of bytes that may be skipped when applying the snapshot event contained in this entry.
- the offset for this snapshot event.
The ISO8601 timestamp of this entry
- the ISO8601 timestamp of this entry