Record Class CursorOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.CursorOptions
- Record Components:
allowMissingStream- whether a missing stream opens as an empty cursor
- All Implemented Interfaces:
Serializable
Cursor options.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCursorOptions(boolean allowMissingStream) Creates an instance of aCursorOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowMissingStreamrecord component.static CursorOptionsdefaults()Returns default cursor options.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CursorOptions
public CursorOptions(boolean allowMissingStream) Creates an instance of aCursorOptionsrecord class.- Parameters:
allowMissingStream- the value for theallowMissingStreamrecord component
-
-
Method Details
-
defaults
Returns default cursor options.- Returns:
- default cursor 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. -
allowMissingStream
public boolean allowMissingStream()Returns the value of theallowMissingStreamrecord component.- Returns:
- the value of the
allowMissingStreamrecord component
-