Record Class PackNodeStore.Options
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.pdt.store.PackNodeStore.Options
- Record Components:
maxPackBytes- the size at which a pack closes,PackNodeStore.DEFAULT_MAX_PACK_BYTESin productionsyncEveryPut- whether to force the pack after every appendfailurePoint- a hook the crash test uses to stop a compaction mid-way;PackNodeStore.FailurePoint.NONEotherwise
- Enclosing class:
PackNodeStore
public static record PackNodeStore.Options(long maxPackBytes, boolean syncEveryPut, PackNodeStore.FailurePoint failurePoint)
extends Record
Tuning for a store (PD-S-02).
-
Constructor Summary
ConstructorsConstructorDescriptionOptions(long maxPackBytes, boolean syncEveryPut, PackNodeStore.FailurePoint failurePoint) Creates an instance of aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PackNodeStore.Optionsdefaults()The production options.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailurePointrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxPackBytesrecord component.booleanReturns the value of thesyncEveryPutrecord component.final StringtoString()Returns a string representation of this record class.These options with another failure hook.withMaxPackBytes(long bytes) These options with another pack size.withSyncEveryPut(boolean sync) These options forcing after every put.
-
Constructor Details
-
Options
Creates an instance of aOptionsrecord class.- Parameters:
maxPackBytes- the value for themaxPackBytesrecord componentsyncEveryPut- the value for thesyncEveryPutrecord componentfailurePoint- the value for thefailurePointrecord component
-
-
Method Details
-
defaults
The production options. -
withMaxPackBytes
These options with another pack size. -
withFailurePoint
These options with another failure hook. -
withSyncEveryPut
These options forcing after every put. -
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 thecomparemethod from their corresponding wrapper classes. -
maxPackBytes
public long maxPackBytes()Returns the value of themaxPackBytesrecord component.- Returns:
- the value of the
maxPackBytesrecord component
-
syncEveryPut
public boolean syncEveryPut()Returns the value of thesyncEveryPutrecord component.- Returns:
- the value of the
syncEveryPutrecord component
-
failurePoint
Returns the value of thefailurePointrecord component.- Returns:
- the value of the
failurePointrecord component
-