Record Class ArchiveRequestedData

java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.writer.ArchiveRequestedData
Record Components:
dataset - nachgeforderter Datensatz
dataIdentification - Datenidentifikation
delayed - Nachgeliefert?
All Implemented Interfaces:
ArchiveJob, Consumer<ArchiveTask>

public record ArchiveRequestedData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed) extends Record implements ArchiveJob
Ein Auftrag, einen nachgeforderten Datensatz zu archivieren
  • Constructor Details

    • ArchiveRequestedData

      public ArchiveRequestedData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed)
      Creates an instance of a ArchiveRequestedData record class.
      Parameters:
      dataset - the value for the dataset record component
      dataIdentification - the value for the dataIdentification record component
      delayed - the value for the delayed record component
  • Method Details

    • accept

      public void accept(ArchiveTask archiveTask)
      Specified by:
      accept in interface Consumer<ArchiveTask>
    • equals

      public boolean equals(Object obj)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public 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
    • estimateMemoryUsage

      public long estimateMemoryUsage()
      Specified by:
      estimateMemoryUsage in interface ArchiveJob
    • 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
    • dataset

      public SerializableDataset dataset()
      Returns the value of the dataset record component.
      Returns:
      the value of the dataset record component
    • dataIdentification

      public IdDataIdentification dataIdentification()
      Returns the value of the dataIdentification record component.
      Returns:
      the value of the dataIdentification record component
    • delayed

      public boolean delayed()
      Returns the value of the delayed record component.
      Returns:
      the value of the delayed record component