Record Class DistributedRingbuffer.ReadManyResult<V>
java.lang.Object
java.lang.Record
com.loomcache.server.datastructures.DistributedRingbuffer.ReadManyResult<V>
- Enclosing class:
DistributedRingbuffer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionReadManyResult(List<V> items, boolean sequenceLost, long headSequence) Creates an instance of aReadManyResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theheadSequencerecord component.items()Returns the value of theitemsrecord component.booleanReturns the value of thesequenceLostrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReadManyResult
Creates an instance of aReadManyResultrecord class.- Parameters:
items- the value for theitemsrecord componentsequenceLost- the value for thesequenceLostrecord componentheadSequence- the value for theheadSequencerecord 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 thecomparemethod from their corresponding wrapper classes. -
items
-
sequenceLost
public boolean sequenceLost()Returns the value of thesequenceLostrecord component.- Returns:
- the value of the
sequenceLostrecord component
-
headSequence
public long headSequence()Returns the value of theheadSequencerecord component.- Returns:
- the value of the
headSequencerecord component
-