Record Class WeatherAcknowledgement
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherAcknowledgement
- All Implemented Interfaces:
Serializable
public record WeatherAcknowledgement(int schemaVersion, UUID requestId, UUID masterEpoch, List<WeatherReceipt> receipts, List<UUID> probeReceipts)
extends Record
implements Serializable
Partial receipts are permitted; omissions and RETRY_LATER retain the original queued event identity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWeatherAcknowledgement(int schemaVersion, UUID requestId, UUID masterEpoch, List<WeatherReceipt> receipts) WeatherAcknowledgement(int schemaVersion, UUID requestId, UUID masterEpoch, List<WeatherReceipt> receipts, List<UUID> probeReceipts) Creates an instance of aWeatherAcknowledgementrecord 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 themasterEpochrecord component.Returns the value of theprobeReceiptsrecord component.receipts()Returns the value of thereceiptsrecord component.Returns the value of therequestIdrecord component.intReturns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.voidvalidateFor(WeatherBatch batch)
-
Constructor Details
-
WeatherAcknowledgement
public WeatherAcknowledgement(int schemaVersion, UUID requestId, UUID masterEpoch, List<WeatherReceipt> receipts) -
WeatherAcknowledgement
public WeatherAcknowledgement(int schemaVersion, UUID requestId, UUID masterEpoch, List<WeatherReceipt> receipts, List<UUID> probeReceipts) Creates an instance of aWeatherAcknowledgementrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentrequestId- the value for therequestIdrecord componentmasterEpoch- the value for themasterEpochrecord componentreceipts- the value for thereceiptsrecord componentprobeReceipts- the value for theprobeReceiptsrecord component
-
-
Method Details
-
validateFor
-
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. -
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
masterEpoch
Returns the value of themasterEpochrecord component.- Returns:
- the value of the
masterEpochrecord component
-
receipts
Returns the value of thereceiptsrecord component.- Returns:
- the value of the
receiptsrecord component
-
probeReceipts
-