Record Class FileSourceConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.source.FileSourceConfig
-
Constructor Summary
ConstructorsConstructorDescriptionFileSourceConfig(String filePath, int batchSize) Creates an instance of aFileSourceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.static FileSourceConfigfromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject config) final inthashCode()Returns a hash code value for this object.com.inductiveautomation.ignition.common.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSourceConfig
Creates an instance of aFileSourceConfigrecord class.- Parameters:
filePath- the value for thefilePathrecord componentbatchSize- the value for thebatchSizerecord component
-
-
Method Details
-
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson() -
fromJson
public static FileSourceConfig fromJson(@Nullable @Nullable com.inductiveautomation.ignition.common.gson.JsonObject config) -
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 '=='. -
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-