per
object per
Sentinel object that enables the once per { ctx -> key } infix syntax.
Usage:
first call Step.CHARGE with { ctx -> chargeService.charge(ctx.orderId) }
once per { ctx -> "charge:${ctx.orderId}" }Content copied to clipboard
Calling per { ctx -> key } produces a PerKey which is then passed to the once infix extension on SagaStepConfiguration.