Interface HeartbeatEvent

All Superinterfaces:
JobEvent
All Known Implementing Classes:
CancelHeartbeat, HeartbeatFired, HeartbeatFireFailed, HeartbeatRebound, HeartbeatRequested, HeartbeatScheduled

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 Type
    Method
    Description
    default JobSnapshot
    Gets the job snapshot containing all job metadata and state.

    Methods inherited from interface JobEvent

    message, timestamp
  • Method Details

    • snapshot

      default JobSnapshot snapshot()
      Description copied from interface: JobEvent
      Gets the job snapshot containing all job metadata and state. This is an immutable snapshot of the job at the time the event was created.
      Specified by:
      snapshot in interface JobEvent
      Returns:
      the job snapshot