DrivineObservedSchemaSource

constructor(persistenceManager: <Error class: unknown class>, ownedSchema: DiceOwnedSchema, clock: Clock = Clock.systemUTC())

Parameters

persistenceManager

Drivine's handle on the neo datasource.

ownedSchema

What this application's own dice storage looks like, built from the DiceStorageSchema beans it registered. Required, with no default, because an observer that guessed at ownership would report some other slice's store as domain drift forever; whoever wires an observer has to say what dice owns in that application.

clock

Supplies the snapshot's capture instant. Injectable because that instant ends up in a drift report's natural key, so a test has to be able to choose whether two checks record one observation or two.