Record Class HeartbeatRequested
java.lang.Object
java.lang.Record
ai.redouble.nucleo.events.heartbeat.HeartbeatRequested
- All Implemented Interfaces:
HeartbeatEvent, JobEvent
public record HeartbeatRequested(Heartbeat heartbeat, Instant timestamp)
extends Record
implements HeartbeatEvent
A framework-minted heartbeat on its way to the store. Constructing one requires a
Heartbeat, which application code cannot mint - the capture paths are the
only sources, so this event's presence on the bus already implies captured authority.- Since:
- 0.1 (2026-08-29)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatRequested(Heartbeat heartbeat) HeartbeatRequested(Heartbeat heartbeat, Instant timestamp) Creates an instance of aHeartbeatRequestedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheartbeatrecord component.message()Gets the message associated with this event.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface HeartbeatEvent
snapshot
-
Constructor Details
-
HeartbeatRequested
-
HeartbeatRequested
-
-
Method Details
-
message
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
heartbeat
Returns the value of theheartbeatrecord component.- Returns:
- the value of the
heartbeatrecord component
-
timestamp
-