com.comcast.xfinity.sirius.writeaheadlog
SiriusLog to use as backend
maximum number of events to keep cached
Fold left across the log entries
Fold left across the log entries
initial accumulator value
function to apply to the log entry, the result being the new accumulator
Fold left across a specified range of log entries
Fold left across a specified range of log entries
For bounded LogRange requests, will check write cache first, replying with entries from memory if possible. This should avoid seeking the range on disk in most catch-up cases.
sequence number to start folding over, inclusive
sequence number to end folding over, inclusive
the starting value of the accumulator
function that should take (accumulator, event) and return a new accumulator
the final value of the accumulator
Apply fun to each entry in the log in order
retrieves the next sequence number to be written
retrieves the next sequence number to be written
Calculates size of the SiriusLog.
Calculates size of the SiriusLog.
a measure of size of the SiriusLog
Write an entry to the log
Write an entry to the log
Writes both to disk and to the in-mem write cache. Trims cache if necessary, depending on MAX_CACHE_SIZE.
Side-effect of updating lastSeq. THIS ASSUMES THAT WRITES OCCUR IN-ORDER.
OrderedEvent to write
Wrapper around any implementation of SiriusLog that enables caching.