Record Class ArchiveRequestedData
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.writer.ArchiveRequestedData
- Record Components:
dataset- nachgeforderter DatensatzdataIdentification- Datenidentifikationdelayed- 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 Summary
ConstructorsConstructorDescriptionArchiveRequestedData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed) Creates an instance of aArchiveRequestedDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ArchiveTask archiveTask) Returns the value of thedataIdentificationrecord component.dataset()Returns the value of thedatasetrecord component.booleandelayed()Returns the value of thedelayedrecord component.booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
ArchiveRequestedData
public ArchiveRequestedData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed) Creates an instance of aArchiveRequestedDatarecord class.- Parameters:
dataset- the value for thedatasetrecord componentdataIdentification- the value for thedataIdentificationrecord componentdelayed- the value for thedelayedrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<ArchiveTask>
-
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 '=='. -
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. -
estimateMemoryUsage
public long estimateMemoryUsage()- Specified by:
estimateMemoryUsagein interfaceArchiveJob
-
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. -
dataset
Returns the value of thedatasetrecord component.- Returns:
- the value of the
datasetrecord component
-
dataIdentification
Returns the value of thedataIdentificationrecord component.- Returns:
- the value of the
dataIdentificationrecord component
-
delayed
public boolean delayed()Returns the value of thedelayedrecord component.- Returns:
- the value of the
delayedrecord component
-