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 aJobEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theeventType
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinputIndex
record component.job()
Returns the value of thejob
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
JobEvent
Creates an instance of aJobEvent
record class.- Parameters:
job
- the value for thejob
record componenttimestamp
- the value for thetimestamp
record componenteventType
- the value for theeventType
record componentinputIndex
- the value for theinputIndex
record 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 thejob
record component.- Returns:
- the value of the
job
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
eventType
Returns the value of theeventType
record component.- Returns:
- the value of the
eventType
record component
-
inputIndex
Returns the value of theinputIndex
record component.- Returns:
- the value of the
inputIndex
record component
-