ParkedAmendment
A change of a parked entry's retry state (FailureLedger.amend), or, for Restate alone, of why it is parked and its retry state at once.
Cases may be added in a minor release, so a when over it keeps an else branch.
Inheritors
Types
Applies spec to the entry, or the subscription's spec again when null (9.x ApplyRetrySpec). The operator's action is told apart by failedAt, when the parking it was made for failed (the entry's ParkedAggregate.failedAt, as the operator saw it): the ledger applies it only while the entry it holds is that parking, in the same write. Null applies it to whichever parking is there: a caller that leaves it out accepts acting on a parking it may not have seen; the ops console always sends it.
Claims the operator's request the owner read, which it runs, until a time (epoch milliseconds): when the entry is still at revision, the one read, the request stays on it and the entry is scheduled for until (ParkedAggregate.nextAttemptAt), so no owner's scan (FailureLedger.due) runs the request again before then. What the request asks settles it: a skip resolves the entry, a retry resolves it or parks it anew, which clears the request. A run that ends before (a stop, a node that dies) leaves the request to whichever owner reads the entry once the claim has lapsed. An operator's change of the entry ends the claim, as it ends a schedule.
Marks the entry recoverable (9.x MarkRecoverable). The operator's action is told apart by failedAt, when the parking it was made for failed (the entry's ParkedAggregate.failedAt, as the operator saw it): the ledger applies it only while the entry it holds is that parking, in the same write. Null applies it to whichever parking is there: a caller that leaves it out accepts acting on a parking it may not have seen; the ops console always sends it.
Leaves request for the partition's owner, replacing the one there, claimed or not (and ending its claim: ClaimRequest). A request belongs to the parking it was made for: a park that replaces the entry, or a repark, that fails at another time clears it (FailureLedger.park, FailureLedger.repark), so it is never taken on a parking nobody looked at. The operator's action is told apart by failedAt, when the parking it was made for failed (the entry's ParkedAggregate.failedAt, as the operator saw it): the ledger applies it only while the entry it holds is that parking, in the same write. Null applies it to whichever parking is there: a caller that leaves it out accepts acting on a parking it may not have seen; the ops console always sends it.
Restates the entry as another record of the same failure holds it now: when the entry is still at revision, the one read, it is parked for reason since failedAt, with retries retries made, the last one started at lastRetryAt, under retrySpec, marked recoverable. An operator's request stays, for the partition's owner.
Records when the owner of the entry's partition next looks at it: when the entry is still at revision, the one the owner read, it is scheduled at (epoch milliseconds, ParkedAggregate.NEVER for an entry that is not retried automatically). So a claim, a repark or an operator's change made since the owner read the entry is never covered by a schedule computed before it.
Takes the operator's request the owner read off the entry: when the entry is still at revision, the one read, it no longer holds a request. An owner takes off a request that what it asks cannot settle, a retry of an entry that can only be skipped (ParkedAggregate.skipOnly); one it runs it claims (ClaimRequest).