Package io.openems.edge.timedata.rrd4j
Record Class RecordWorker.Config
java.lang.Object
java.lang.Record
io.openems.edge.timedata.rrd4j.RecordWorker.Config
- Enclosing class:
RecordWorker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thedebugMode
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theonQueueFull
record component.Returns the value of theonUnableToInsert
record component.Returns the value of thepersistencePriority
record component.boolean
readOnly()
Returns the value of thereadOnly
record component.rrdDbId()
Returns the value of therrdDbId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(String rrdDbId, boolean readOnly, boolean debugMode, PersistencePriority persistencePriority, Consumer<? super Boolean> onQueueFull, Consumer<? super Boolean> onUnableToInsert) Creates an instance of aConfig
record class.- Parameters:
rrdDbId
- the value for therrdDbId
record componentreadOnly
- the value for thereadOnly
record componentdebugMode
- the value for thedebugMode
record componentpersistencePriority
- the value for thepersistencePriority
record componentonQueueFull
- the value for theonQueueFull
record componentonUnableToInsert
- the value for theonUnableToInsert
record component
-
-
Method Details
-
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. -
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. -
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 '=='. -
rrdDbId
Returns the value of therrdDbId
record component.- Returns:
- the value of the
rrdDbId
record component
-
readOnly
public boolean readOnly()Returns the value of thereadOnly
record component.- Returns:
- the value of the
readOnly
record component
-
debugMode
public boolean debugMode()Returns the value of thedebugMode
record component.- Returns:
- the value of the
debugMode
record component
-
persistencePriority
Returns the value of thepersistencePriority
record component.- Returns:
- the value of the
persistencePriority
record component
-
onQueueFull
Returns the value of theonQueueFull
record component.- Returns:
- the value of the
onQueueFull
record component
-
onUnableToInsert
Returns the value of theonUnableToInsert
record component.- Returns:
- the value of the
onUnableToInsert
record component
-