Record Class WeatherProbe.Job
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherProbe.Job
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherProbe
public static record WeatherProbe.Job(UUID id, UUID masterEpoch, WeatherProbe.Policy policy, long issuedAt, long expiresAt)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJob(UUID id, UUID masterEpoch, WeatherProbe.Policy policy, long issuedAt, long expiresAt) Creates an instance of aJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longissuedAt()Returns the value of theissuedAtrecord component.Returns the value of themasterEpochrecord component.policy()Returns the value of thepolicyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Job
Creates an instance of aJobrecord class.- Parameters:
id- the value for theidrecord componentmasterEpoch- the value for themasterEpochrecord componentpolicy- the value for thepolicyrecord componentissuedAt- the value for theissuedAtrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
masterEpoch
Returns the value of themasterEpochrecord component.- Returns:
- the value of the
masterEpochrecord component
-
policy
Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-
issuedAt
public long issuedAt()Returns the value of theissuedAtrecord component.- Returns:
- the value of the
issuedAtrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-