Interface HeartbeatEvent
- All Superinterfaces:
JobEvent
- All Known Implementing Classes:
CancelHeartbeat, HeartbeatFired, HeartbeatFireFailed, HeartbeatRebound, HeartbeatRequested, HeartbeatScheduled
public sealed interface HeartbeatEvent
extends JobEvent
permits HeartbeatRequested, CancelHeartbeat, HeartbeatScheduled, HeartbeatFired, HeartbeatFireFailed, HeartbeatRebound
Sealed category for heartbeat control-plane events: schedule requests, cancellations,
and the Heart's lifecycle notifications. Deliberately NOT
OperationalEvent:
that category is high-volume telemetry that broad subscribers must skip, while these
are low-volume commands and audit-worthy transitions that dashboards and persisters
subscribe to.
Every member answers a null JobEvent.snapshot(): a heartbeat transition has
no owning job (the fired job's own lifecycle events carry its snapshot), and the
HeartbeatFired correlation is by jobId. An event with no snapshot reaches global and
by-type subscriptions for all jobs, never a job-type-scoped or a workflow-scoped one.
- Since:
- 0.1 (2026-08-29)
- Author:
- Andrey Santrosyan
-
Method Summary
Modifier and TypeMethodDescriptiondefault JobSnapshotsnapshot()Gets the job snapshot containing all job metadata and state.