StepRefusal

sealed interface StepRefusal

Why one child's change did not land in a LocalHeddle.apply.

Inheritors

Types

Link copied to clipboard
data class Draining(val child: GroupId, val edge: AttachmentId, val outstanding: Long, val blockingLeases: List<Lease>) : StepRefusal

edge, which is child's own edge or that of a waiting group above child (see below), still carries outstanding units, or an open lease, so it cannot retire yet: the change waits for that work to finish. blockingLeases are this engine's open leases whose path crosses edge, in id order; complete or cancel them, or settle them through LocalHeddle.reconcileLeases if their work is gone, and apply again.

Link copied to clipboard
data class Refused(val child: GroupId, val step: TopologyStep, val reason: String) : StepRefusal

step was refused for a reason waiting on this engine's leases will not cure, described by reason: a record the ledger holds twice, say, or a reweight whose old edge still carries units after the engine released every one of its own there. Or child sits beneath a group the root does not reach, a new one this apply or an earlier one left out, so no delegation could reach it; reason names that group. child is left as it was before this apply.

Properties

Link copied to clipboard
abstract val child: GroupId

The group whose change did not land.