Record Class AcquisitionNotification
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.notification.AcquisitionNotification
public record AcquisitionNotification(String profile, String messageId, String identity, String publicationTime, String topic, String source, String relation, AcquisitionNotification.Integrity integrity)
extends Record
Protocol-neutral attribution and expected integrity, independent of the notification's retrieval URL.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAcquisitionNotification(String profile, String messageId, String identity, String publicationTime, String topic, String source, String relation, AcquisitionNotification.Integrity integrity) Creates an instance of aAcquisitionNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcquisitionNotificationdetails()encode()final booleanIndicates whether some other object is "equal to" this one.static AcquisitionNotificationfromMetadata(Map<String, String> metadata) final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of theintegrityrecord component.Returns the value of themessageIdrecord component.metadata()Fit the existing metadata value columns without truncating identity or changing the schema.profile()Returns the value of theprofilerecord component.Returns the value of thepublicationTimerecord component.relation()Returns the value of therelationrecord component.source()Returns the value of thesourcerecord component.longtopic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.A complete version identity; neither mirror URLs nor broker message IDs affect deduplication.
-
Constructor Details
-
AcquisitionNotification
public AcquisitionNotification(String profile, String messageId, String identity, String publicationTime, String topic, String source, String relation, AcquisitionNotification.Integrity integrity) Creates an instance of aAcquisitionNotificationrecord class.- Parameters:
profile- the value for theprofilerecord componentmessageId- the value for themessageIdrecord componentidentity- the value for theidentityrecord componentpublicationTime- the value for thepublicationTimerecord componenttopic- the value for thetopicrecord componentsource- the value for thesourcerecord componentrelation- the value for therelationrecord componentintegrity- the value for theintegrityrecord component
-
-
Method Details
-
timeMillis
public long timeMillis() -
uniqueName
A complete version identity; neither mirror URLs nor broker message IDs affect deduplication.- Throws:
IOException
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
metadata
Fit the existing metadata value columns without truncating identity or changing the schema.- Throws:
IOException
-
fromMetadata
- Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
publicationTime
Returns the value of thepublicationTimerecord component.- Returns:
- the value of the
publicationTimerecord component
-
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
relation
Returns the value of therelationrecord component.- Returns:
- the value of the
relationrecord component
-
integrity
Returns the value of theintegrityrecord component.- Returns:
- the value of the
integrityrecord component
-