HostLost

data class HostLost(val at: Instant, val reason: FailureReason, val localFabric: FabricAvailability) : MembershipEvent

The host's transport link was permanently lost (joiner perspective only).

Terminal state. Room.broadcast and Room.sendTo become silent no-ops after this event.

Treat it as the last word, even though it may not arrive last. An event racing it on another thread can land just after it, so ignore everything that follows: a Partitioned or WindowOpened would start a countdown no event ends. Stop any countdown already running too, since no Recovered or Left will come for it. Neither a Resumed nor a Readmitted follows it: the host's Welcome that arrives once the host is lost closes nothing and emits nothing.

The room then ends itself as Room.leave does: Room.roster empties and every Room.incomingFrom flow completes. The event comes first and the room does not wait for a handler, so a handler reading room.roster.value may see either the old list or an empty one. Keep what you need from the roster before this event rather than reading it here.

Driven by us.tractat.kuilt.session.partition.PartitionEvent.PeerLost for the host peer. The room does not auto-elect a new host.

reason classifies the terminal failure (window expired / refused / unrecoverable) — see FailureReason, the post-admission analogue of AdmissionFailure on AdmissionFailed.

Constructors

Link copied to clipboard
constructor(at: Instant, reason: FailureReason, localFabric: FabricAvailability)

Properties

Link copied to clipboard
val at: Instant
Link copied to clipboard

This peer's own Room.localFabric at the instant this event was emitted.

Link copied to clipboard