Package-level declarations

Types

Link copied to clipboard

The id of the aggregate a command acts on, by the property a contract names (idProperty, the command class's @AggregateId): read from a JSON body (of), as a reader that has no class of the command reads it, or from a command object (ofCommand), stored or computed, as a node that sends the command reads it.

Link copied to clipboard

How a command's body built in process is written as JSON: with what its class reads (#7534, #7574), so that the body a forward or a command topic carries reads back as the object it was written from, and holds no value its class does not read, which a node of a release that lacks it would refuse as a property its command does not have. Wow writes a command's body from its object through tree, text and bytes: the cluster codec's wire, the ledger's records and the Kotlin client's bodies. A schedule's stored command holds what its class reads, each value as Wow's JSON writes it, and never a write-only value (stored); a message about a command (a decide function's misuse, the test DSL's differences) writes it with Wow's JSON, which leaves its write-only values out. The test DSL compares commands as written here.

Link copied to clipboard
class JsonReadFailure(val path: String, val reason: JsonReadFailure.Reason, val message: String)

Why a JSON value did not read as its type, in Wow's words: the property, by its path in the JSON (items[0].quantity, empty for the value itself), and one reason of a small set with its message. Never Jackson's message, which can name a class of the application.

Link copied to clipboard
class JsonReadFailures(mapper: JsonMapper)

Describes the failures of mapper's reads (JsonReadFailure). A number out of range, which Jackson reports with no path, is located by reading the value again, on this error path only, with readers that name the path.

Link copied to clipboard

An aggregate's state as JSON, as Wow writes and reads it (mapper, from WowJson's configuration), and the fingerprint of that JSON's shape (fingerprint): what a snapshot carries (me.ahoo.wow.spi.snapshot.SnapshotRecord, me.ahoo.wow.spi.state.PublishedState) and the Manifest records for a state, so a snapshot written under another shape is replayed from the log instead of read back. The kernel's event codec and the Manifest's generator both take them from here, so the two always agree.

Link copied to clipboard

Wow's own enumerations on the wire, each listed here and written by its wire name (WireNames): CATCH_UP is catch-up. A reader takes the wire name alone; a value it does not know fails, unless the reader may be older than its writer (module with tolerant), which reads it as the enumeration's UNKNOWN where it has one.

Link copied to clipboard
object WowJson

The one JSON mapper configuration of Wow: the kernel's event codec, the cluster codec and every backend build their mappers from builder, so a value means the same thing wherever it is read.