Record Class WeatherOutbox.Delivery
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherOutbox.Delivery
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherOutbox
public static record WeatherOutbox.Delivery(WeatherObservation observation, long queueAgeMs)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDelivery(WeatherObservation observation, long queueAgeMs) Creates an instance of aDeliveryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobservationrecord component.longReturns the value of thequeueAgeMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Delivery
Creates an instance of aDeliveryrecord class.- Parameters:
observation- the value for theobservationrecord componentqueueAgeMs- the value for thequeueAgeMsrecord 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. -
observation
Returns the value of theobservationrecord component.- Returns:
- the value of the
observationrecord component
-
queueAgeMs
public long queueAgeMs()Returns the value of thequeueAgeMsrecord component.- Returns:
- the value of the
queueAgeMsrecord component
-