Record Class WeatherSourceRegistry.Timing
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherSourceRegistry.Timing
- Enclosing class:
WeatherSourceRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionTiming(long offsetMs, long uncertaintyMs) Creates an instance of aTimingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbucketOffset(WeatherObservation observation) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longoffsetMs()Returns the value of theoffsetMsrecord component.longqueueAge(WeatherBatch batch, WeatherOutbox.Delivery delivery, long now) final StringtoString()Returns a string representation of this record class.longReturns the value of theuncertaintyMsrecord component.voidvalidateDispatch(WeatherBatch batch, long now)
-
Constructor Details
-
Timing
public Timing(long offsetMs, long uncertaintyMs) Creates an instance of aTimingrecord class.- Parameters:
offsetMs- the value for theoffsetMsrecord componentuncertaintyMs- the value for theuncertaintyMsrecord component
-
-
Method Details
-
validateDispatch
-
queueAge
-
bucketOffset
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
offsetMs
public long offsetMs()Returns the value of theoffsetMsrecord component.- Returns:
- the value of the
offsetMsrecord component
-
uncertaintyMs
public long uncertaintyMs()Returns the value of theuncertaintyMsrecord component.- Returns:
- the value of the
uncertaintyMsrecord component
-