Record Class ArchiveOnlineData
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.writer.ArchiveOnlineData
- Record Components:
dataset- Online-DatensatzdataIdentification- Datenidentifikationdelayed- Nachgeliefert?
- All Implemented Interfaces:
ArchiveJob,Consumer<ArchiveTask>
public record ArchiveOnlineData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed)
extends Record
implements ArchiveJob
Ein Auftrag, einen Onlinedatensatz zu archivieren
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArchiveOnlineData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed) Creates an instance of aArchiveOnlineDatarecord 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.
-
Field Details
-
MSG_PID_DATAINDEX_ANOMALY
Kennzeichen der Betriebsmeldung- See Also:
-
-
Constructor Details
-
ArchiveOnlineData
public ArchiveOnlineData(SerializableDataset dataset, IdDataIdentification dataIdentification, boolean delayed) Creates an instance of aArchiveOnlineDatarecord 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
-