Record Class BlockfileMergerThreadsCalculator.ThreadsForFile
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.merge.BlockfileMergerThreadsCalculator.ThreadsForFile
- Enclosing class:
BlockfileMergerThreadsCalculator
public static record BlockfileMergerThreadsCalculator.ThreadsForFile(BlockfileNameAndSize file, int threads)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionThreadsForFile(BlockfileNameAndSize file, int threads) Creates an instance of aThreadsForFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.intthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThreadsForFile
Creates an instance of aThreadsForFilerecord class.- Parameters:
file- the value for thefilerecord componentthreads- the value for thethreadsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 '=='. -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
threads
public int threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-