Module org.elasticsearch.server
Record Class SchedulerEngine.Event
java.lang.Object
java.lang.Record
org.elasticsearch.common.scheduler.SchedulerEngine.Event
- Enclosing class:
SchedulerEngine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.The following getters are redundant with the getters built in by the record.long
long
final int
hashCode()
Returns a hash code value for this object.jobName()
Returns the value of thejobName
record component.long
Returns the value of thescheduledTime
record component.toString()
Returns a string representation of this record class.long
Returns the value of thetriggeredTime
record component.
-
Constructor Details
-
Event
Creates an instance of aEvent
record class.- Parameters:
jobName
- the value for thejobName
record componenttriggeredTime
- the value for thetriggeredTime
record componentscheduledTime
- the value for thescheduledTime
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. -
getJobName
The following getters are redundant with the getters built in by the record. Unfortunately, getFieldName form getters are expected by serverless. These getters are being added back until serverless can be updated for the new getters. -
getTriggeredTime
public long getTriggeredTime() -
getScheduledTime
public long getScheduledTime() -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
jobName
Returns the value of thejobName
record component.- Returns:
- the value of the
jobName
record component
-
triggeredTime
public long triggeredTime()Returns the value of thetriggeredTime
record component.- Returns:
- the value of the
triggeredTime
record component
-
scheduledTime
public long scheduledTime()Returns the value of thescheduledTime
record component.- Returns:
- the value of the
scheduledTime
record component
-