At

data class At(val instant: Instant) : SubscriptionStart

From the first entry of the partition, in log order, written at or after instant: every entry after it is handled, whatever its time; after the head when none is yet, as End. An entry's time is when it was written (EventStreamRecord.writtenAt): an import's commit occurred long before, and was written after the instant all the same.

Those times are not ordered along a partition: an entry's is its decision's reading of the clock, and decisions of different aggregates commit in another order than they read it (one decides longer, or waits longer to be appended), as a lease handover's clock skew does too. So the entry is found by reading the partition forward from its first entry (firstAt) up to the head read when the search begins, the way a subscription catching up reads it (EventLog.tail), once, on the subscription's first start in the partition: the entries before the start are read, not handled.

Constructors

Link copied to clipboard
constructor(instant: Instant)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun checkpointIn(log: EventLog, partition: Int): Long

The checkpoint the subscription starts after in partition of log: every entry after it is handled. 0 is before the first entry.

Link copied to clipboard
open override fun toString(): String