DerivedIds

The one encoder of every id Wow derives from what a request asks: a saga's derived commands, its compensations, and the commands a decide function sends. Each field is written as its length, :, and itself, so two different lists of fields never give one text, whatever characters the fields hold (a / or # in a tenant, an id or a business key), and two different requests never share an id.

Every request id the framework gives its own commands starts with PREFIX: these, a timer's (me.ahoo.wow.spi.timer.Timer.requestId) and the ledger's. Admission refuses the prefix from any other request, so no caller can commit first under an id the framework will send, which anyone can compute (#7064).

Properties

Link copied to clipboard
const val PREFIX: String

What every request id the framework derives starts with, and no caller's may.

Functions

Link copied to clipboard
fun encoded(vararg fields: String): String

The one text of fields, in order: each as its length, :, and itself, so they join one way only.

Link copied to clipboard
fun idOf(name: String): String

PREFIX and a name-based UUID of name.

Link copied to clipboard

Whether requestId is one only the framework gives: it starts with PREFIX.