Record Class FileSystemReporterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.reporter.fs.FileSystemReporterConfig
- All Implemented Interfaces:
Serializable
public record FileSystemReporterConfig(Path statusFile, long reportUpdateMs)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemReporterConfig(Path statusFile, long reportUpdateMs) Creates an instance of aFileSystemReporterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static FileSystemReporterConfiglongReturns the value of thereportUpdateMsrecord component.Returns the value of thestatusFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSystemReporterConfig
Creates an instance of aFileSystemReporterConfigrecord class.- Parameters:
statusFile- the value for thestatusFilerecord componentreportUpdateMs- the value for thereportUpdateMsrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
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 '=='. -
statusFile
Returns the value of thestatusFilerecord component.- Returns:
- the value of the
statusFilerecord component
-
reportUpdateMs
public long reportUpdateMs()Returns the value of thereportUpdateMsrecord component.- Returns:
- the value of the
reportUpdateMsrecord component
-