Package-level declarations

Types

Link copied to clipboard
class CommittedStateReads(tooLong: (limit: Int) -> InvalidStateReadException = ::minVersionTooLong, reads: () -> StateReads) : CommittedStates

The node's state reads, which reads gives when asked, as the CommittedStates the read facade reads a minimum version from (ReadFacade.reached) and the aggregate at its log's head from (ReadFacade.current). The public and internal ports' state reads read through it, and so does the node's in-process QueryApi, which reads the latest state and a minimum version (it has no read of the history), so each entry answers them alike. A catch-up longer than the state reads replay is tooLong of the bound (InvalidStateReadException, replay-too-long): by default, the request's minVersion asking too much (minVersionTooLong). The latest state is read as StateReads.latest reads it.