Record Class WeatherBatch
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherBatch
- All Implemented Interfaces:
Serializable
public record WeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries, String signature, long sentAt, List<WeatherProbe.Result> probeResults)
extends Record
implements Serializable
Wire envelope shared by direct and relayed transport. Queue age is source evidence, not trusted timing.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries) WeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries, String signature) WeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries, String signature, long sentAt) WeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries, String signature, long sentAt, List<WeatherProbe.Result> probeResults) Creates an instance of aWeatherBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WeatherBatchdecode(byte[] bytes) Returns the value of thedeliveriesrecord component.byte[]encode()final 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 theprobeResultsrecord component.Returns the value of therequestIdrecord component.intReturns the value of theschemaVersionrecord component.longsentAt()Returns the value of thesentAtrecord component.Returns the value of thesignaturerecord component.sourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.void
-
Field Details
-
MAX_BYTES
public static final int MAX_BYTES- See Also:
-
MAX_EVENTS
public static final int MAX_EVENTS- See Also:
-
-
Constructor Details
-
WeatherBatch
-
WeatherBatch
public WeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries) -
WeatherBatch
-
WeatherBatch
public WeatherBatch(int schemaVersion, UUID requestId, UUID masterEpoch, String sourceId, List<WeatherOutbox.Delivery> deliveries, String signature, long sentAt, List<WeatherProbe.Result> probeResults) Creates an instance of aWeatherBatchrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentrequestId- the value for therequestIdrecord componentmasterEpoch- the value for themasterEpochrecord componentsourceId- the value for thesourceIdrecord componentdeliveries- the value for thedeliveriesrecord componentsignature- the value for thesignaturerecord componentsentAt- the value for thesentAtrecord componentprobeResults- the value for theprobeResultsrecord component
-
-
Method Details
-
sourceEpoch
-
verify
- Throws:
IOExceptionGeneralSecurityException
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
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
-
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
deliveries
Returns the value of thedeliveriesrecord component.- Returns:
- the value of the
deliveriesrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
sentAt
public long sentAt()Returns the value of thesentAtrecord component.- Returns:
- the value of the
sentAtrecord component
-
probeResults
Returns the value of theprobeResultsrecord component.- Returns:
- the value of the
probeResultsrecord component
-