amend
abstract suspend fun amend(subscription: SubscriptionId, ref: AggregateRef, amendment: ParkedAmendment): ParkedAggregate?
Changes the retry state of the entry parking ref for subscription as amendment says, in one write, giving it the next revision; a restate (ParkedAmendment.Restate) also changes why it is parked. A claim of an automatic retry (ParkedAmendment.ClaimRetry), a schedule (ParkedAmendment.Schedule), the take of a request (ParkedAmendment.TakeRequest) or a restate applies only at the revision its caller read, so of two nodes that both read it (an owner handing its partition off and the next one) only one claims or takes it, and nothing written since the read is covered.
Return
the amended entry; null when the aggregate is not parked or the amendment's condition does not hold.