Record Class SourceStatusChanged
java.lang.Object
java.lang.Record
lol.trq.orpheus.event.SourceStatusChanged
- Record Components:
snapshot- the current snapshotsourceId- the sourcestatus- its new status
- All Implemented Interfaces:
OrpheusEvent
public record SourceStatusChanged(Snapshot snapshot, String sourceId, SourceStatus status)
extends Record
implements OrpheusEvent
A source became ready, unavailable or stopped.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceStatusChanged(Snapshot snapshot, String sourceId, SourceStatus status) Creates an instance of aSourceStatusChangedrecord 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.snapshot()Returns the value of thesnapshotrecord component.sourceId()Returns the value of thesourceIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
snapshot
Returns the value of thesnapshotrecord component.- Specified by:
snapshotin interfaceOrpheusEvent- Returns:
- the value of the
snapshotrecord component
-
sourceId
-
status
-