Package io.datarouter.bytes.kvfile.merge
Record Class KvFileMergerParams
java.lang.Object
java.lang.Record
io.datarouter.bytes.kvfile.merge.KvFileMergerParams
public record KvFileMergerParams(KvFileMergerParams.Nested.KvFileMergerStorageParams storageParams, KvFileBlockFormat blockFormat, KvFileMergerParams.Nested.KvFileMergerReadParams readParams, KvFileMergerParams.Nested.KvFileMergerWriteParams writeParams, Duration heartbeatPeriod)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKvFileMergerParams(KvFileMergerParams.Nested.KvFileMergerStorageParams storageParams, KvFileBlockFormat blockFormat, KvFileMergerParams.Nested.KvFileMergerReadParams readParams, KvFileMergerParams.Nested.KvFileMergerWriteParams writeParams, Duration heartbeatPeriod) Creates an instance of aKvFileMergerParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockFormatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheartbeatPeriodrecord component.Returns the value of thereadParamsrecord component.Returns the value of thestorageParamsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewriteParamsrecord component.
-
Constructor Details
-
KvFileMergerParams
public KvFileMergerParams(KvFileMergerParams.Nested.KvFileMergerStorageParams storageParams, KvFileBlockFormat blockFormat, KvFileMergerParams.Nested.KvFileMergerReadParams readParams, KvFileMergerParams.Nested.KvFileMergerWriteParams writeParams, Duration heartbeatPeriod) Creates an instance of aKvFileMergerParamsrecord class.- Parameters:
storageParams- the value for thestorageParamsrecord componentblockFormat- the value for theblockFormatrecord componentreadParams- the value for thereadParamsrecord componentwriteParams- the value for thewriteParamsrecord componentheartbeatPeriod- the value for theheartbeatPeriodrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
storageParams
Returns the value of thestorageParamsrecord component.- Returns:
- the value of the
storageParamsrecord component
-
blockFormat
Returns the value of theblockFormatrecord component.- Returns:
- the value of the
blockFormatrecord component
-
readParams
Returns the value of thereadParamsrecord component.- Returns:
- the value of the
readParamsrecord component
-
writeParams
Returns the value of thewriteParamsrecord component.- Returns:
- the value of the
writeParamsrecord component
-
heartbeatPeriod
Returns the value of theheartbeatPeriodrecord component.- Returns:
- the value of the
heartbeatPeriodrecord component
-