Record Class CascadeSourceBatch
java.lang.Object
java.lang.Record
org.alfresco.elasticsearch.batchindexing.cascade.CascadeSourceBatch
- Record Components:
renames- rename candidates observed during the cyclecategoryDeletes- delete candidates observed during the cycle
public record CascadeSourceBatch(List<RenameCascadeSource> renames, List<CategoryDeleteCascadeSource> categoryDeletes)
extends Record
Snapshot of cascade sources drained from
CascadeSourceStash at the end of a reindex cycle.-
Constructor Summary
ConstructorsConstructorDescriptionCascadeSourceBatch(List<RenameCascadeSource> renames, List<CategoryDeleteCascadeSource> categoryDeletes) Creates an instance of aCascadeSourceBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategoryDeletesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()renames()Returns the value of therenamesrecord component.final StringtoString()Returns a string representation of this record class.int
-
Constructor Details
-
CascadeSourceBatch
public CascadeSourceBatch(List<RenameCascadeSource> renames, List<CategoryDeleteCascadeSource> categoryDeletes) Creates an instance of aCascadeSourceBatchrecord class.- Parameters:
renames- the value for therenamesrecord componentcategoryDeletes- the value for thecategoryDeletesrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
totalSize
public int totalSize() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object). -
renames
Returns the value of therenamesrecord component.- Returns:
- the value of the
renamesrecord component
-
categoryDeletes
Returns the value of thecategoryDeletesrecord component.- Returns:
- the value of the
categoryDeletesrecord component
-