Record Class AppendOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.AppendOptions
- Record Components:
maxPayloadBytes- maximum payload bytes allowed by the callermaxRecordsPerAppend- maximum records allowed by the callerhashChain- whether hash-chain metadata is requested
- All Implemented Interfaces:
Serializable
public record AppendOptions(long maxPayloadBytes, int maxRecordsPerAppend, boolean hashChain)
extends Record
implements Serializable
Append options.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAppendOptions(long maxPayloadBytes, int maxRecordsPerAppend, boolean hashChain) Creates append options. -
Method Summary
Modifier and TypeMethodDescriptionstatic AppendOptionsdefaults()Returns default append options.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehashChainrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxPayloadBytesrecord component.intReturns the value of themaxRecordsPerAppendrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppendOptions
public AppendOptions(long maxPayloadBytes, int maxRecordsPerAppend, boolean hashChain) Creates append options.
-
-
Method Details
-
defaults
Returns default append options.- Returns:
- default append options
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxPayloadBytes
public long maxPayloadBytes()Returns the value of themaxPayloadBytesrecord component.- Returns:
- the value of the
maxPayloadBytesrecord component
-
maxRecordsPerAppend
public int maxRecordsPerAppend()Returns the value of themaxRecordsPerAppendrecord component.- Returns:
- the value of the
maxRecordsPerAppendrecord component
-
hashChain
-