Package de.uni_kiel.rz.fdr.repl
Record Class REPLJob.JobEvent
java.lang.Object
java.lang.Record
de.uni_kiel.rz.fdr.repl.REPLJob.JobEvent
- Record Components:
job- The job that generated the eventtimestamp- The event's timestampeventType- The type of event that happenedinputIndex- The index of the input that generated the event (if applicable)
- Enclosing class:
- REPLJob
public static record REPLJob.JobEvent(REPLJob job, Instant timestamp, REPLJob.JobEventType eventType, Integer inputIndex)
extends Record
Represents an event that occured during job processing, to be consumed by an event handler.
-
Constructor Summary
ConstructorsConstructorDescriptionJobEvent(REPLJob job, Instant timestamp, REPLJob.JobEventType eventType, Integer inputIndex) Creates an instance of aJobEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinputIndexrecord component.job()Returns the value of thejobrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobEvent
Creates an instance of aJobEventrecord class.- Parameters:
job- the value for thejobrecord componenttimestamp- the value for thetimestamprecord componenteventType- the value for theeventTyperecord componentinputIndex- the value for theinputIndexrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
eventType
Returns the value of theeventTyperecord component.- Returns:
- the value of the
eventTyperecord component
-
inputIndex
Returns the value of theinputIndexrecord component.- Returns:
- the value of the
inputIndexrecord component
-