WaitHeader

The Wow-Wait and Wow-Wait-Timeout headers.

plan := hop (">" hop)*
hop := "accepted" ["(" ctx ")"]
| "committed" ["(" ctx ")"]
| "snapshot" ["(" ctx ")"]
| "handled(" [ctx "/"] subscription ")"

Keywords are case-insensitive and white space around the tokens is ignored: handled(order/payment-saga) > committed(inventory). A subscription is named as in the Manifest and may hold dots (processor.function), so the context of a handled hop is set apart by /. handled(wow.snapshot) is the same hop as snapshot. The timeout is <n>ms, <n>s, <n>m or an ISO-8601 duration (PT10S), and positive.

format prints a plan as parse reads it, the inverse of parse.

Functions

Link copied to clipboard
fun format(plan: WaitPlan): String

plan's hops as parse reads them.

Link copied to clipboard
fun formatHop(hop: Hop): String

hop as parseHop reads it.

Link copied to clipboard

timeout as parseTimeout reads it.

Link copied to clipboard
fun parse(value: String): WaitPlan

The plan value spells.

Link copied to clipboard
fun parseHop(value: String): Hop

The hop value spells.

Link copied to clipboard

The timeout value spells.