Record Class BatchOperation.DeserializedBatch
java.lang.Object
java.lang.Record
com.loomcache.common.protocol.BatchOperation.DeserializedBatch
- Enclosing class:
BatchOperation
public static record BatchOperation.DeserializedBatch(boolean atomic, boolean replicated, List<BatchOperation> operations)
extends Record
Result of deserializing a batch — includes flags and the operation list.
- Since:
- 1.3
-
Constructor Summary
ConstructorsConstructorDescriptionDeserializedBatch(boolean atomic, boolean replicated, List<BatchOperation> operations) Creates an instance of aDeserializedBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanatomic()Returns the value of theatomicrecord 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 theoperationsrecord component.booleanReturns the value of thereplicatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeserializedBatch
Creates an instance of aDeserializedBatchrecord class.- Parameters:
atomic- the value for theatomicrecord componentreplicated- the value for thereplicatedrecord componentoperations- the value for theoperationsrecord 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. -
atomic
public boolean atomic()Returns the value of theatomicrecord component.- Returns:
- the value of the
atomicrecord component
-
replicated
public boolean replicated()Returns the value of thereplicatedrecord component.- Returns:
- the value of the
replicatedrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-