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 aArchiveOnlineData
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ArchiveTask archiveTask) Returns the value of thedataIdentification
record component.dataset()
Returns the value of thedataset
record component.boolean
delayed()
Returns the value of thedelayed
record component.boolean
Indicates whether some other object is "equal to" this one.long
final int
hashCode()
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 aArchiveOnlineData
record class.- Parameters:
dataset
- the value for thedataset
record componentdataIdentification
- the value for thedataIdentification
record componentdelayed
- the value for thedelayed
record component
-
-
Method Details
-
accept
- Specified by:
accept
in 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:
estimateMemoryUsage
in 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 thedataset
record component.- Returns:
- the value of the
dataset
record component
-
dataIdentification
Returns the value of thedataIdentification
record component.- Returns:
- the value of the
dataIdentification
record component
-
delayed
public boolean delayed()Returns the value of thedelayed
record component.- Returns:
- the value of the
delayed
record component
-