Whether this store is still holdable, or has been given to a ladder.
Adds a record to the end of the buffer.
How many records the buffer holds.
Reads the oldest record without removing it, or null when empty.
Removes and returns the oldest record, or null when empty.
StaticfileOpens a buffer backed by a directory, so it survives a restart.
the directory to hold records in; it is created if missing.
StaticmemoryCreates a buffer held in memory.
Optionalcapacity: number | null
the most records to hold, or omitted for no bound. A full store refuses the next append rather than dropping anything, so a record is never lost without the caller being told.
A store-and-forward buffer.
Handing a store to a ladder consumes it, because the ladder owns it from then on. A consumed store is emptied rather than left aliasing what now belongs to the ladder, so using one twice throws.