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 booleanIndicates whether some other object is "equal to" this one.The following getters are redundant with the getters built in by the record.longlongfinal inthashCode()Returns a hash code value for this object.jobName()Returns the value of thejobNamerecord component.longReturns the value of thescheduledTimerecord component.toString()Returns a string representation of this record class.longReturns the value of thetriggeredTimerecord component.
-
Constructor Details
-
Event
Creates an instance of aEventrecord class.- Parameters:
jobName- the value for thejobNamerecord componenttriggeredTime- the value for thetriggeredTimerecord componentscheduledTime- the value for thescheduledTimerecord 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 thejobNamerecord component.- Returns:
- the value of the
jobNamerecord component
-
triggeredTime
public long triggeredTime()Returns the value of thetriggeredTimerecord component.- Returns:
- the value of the
triggeredTimerecord component
-
scheduledTime
public long scheduledTime()Returns the value of thescheduledTimerecord component.- Returns:
- the value of the
scheduledTimerecord component
-