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.
  • 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 a AcquisitionNotification record class.
      Parameters:
      profile - the value for the profile record component
      messageId - the value for the messageId record component
      identity - the value for the identity record component
      publicationTime - the value for the publicationTime record component
      topic - the value for the topic record component
      source - the value for the source record component
      relation - the value for the relation record component
      integrity - the value for the integrity record component
  • Method Details

    • timeMillis

      public long timeMillis()
    • uniqueName

      public String uniqueName() throws IOException
      A complete version identity; neither mirror URLs nor broker message IDs affect deduplication.
      Throws:
      IOException
    • encode

      public String encode() throws IOException
      Throws:
      IOException
    • decode

      public static AcquisitionNotification decode(String encoded) throws IOException
      Throws:
      IOException
    • metadata

      public String metadata() throws IOException
      Fit the existing metadata value columns without truncating identity or changing the schema.
      Throws:
      IOException
    • fromMetadata

      public static AcquisitionNotification fromMetadata(Map<String,String> metadata) throws IOException
      Throws:
      IOException
    • details

      public Map<String,String> details()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • profile

      public String profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • identity

      public String identity()
      Returns the value of the identity record component.
      Returns:
      the value of the identity record component
    • publicationTime

      public String publicationTime()
      Returns the value of the publicationTime record component.
      Returns:
      the value of the publicationTime record component
    • topic

      public String topic()
      Returns the value of the topic record component.
      Returns:
      the value of the topic record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • relation

      public String relation()
      Returns the value of the relation record component.
      Returns:
      the value of the relation record component
    • integrity

      Returns the value of the integrity record component.
      Returns:
      the value of the integrity record component