Record Class BulkProgress
java.lang.Object
java.lang.Record
org.alfresco.module.org_alfresco_module_rm.bulk.BulkProgress
public record BulkProgress(long totalItems, String processId, AtomicBoolean cancelled, AtomicInteger currentNodeNumber)
extends Record
An immutable POJO to represent the progress of a bulk operation
-
Constructor Summary
ConstructorsConstructorDescriptionBulkProgress(long totalItems, String processId, AtomicBoolean cancelled, AtomicInteger currentNodeNumber) Creates an instance of aBulkProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelledrecord component.Returns the value of thecurrentNodeNumberrecord 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 theprocessIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
BulkProgress
public BulkProgress(long totalItems, String processId, AtomicBoolean cancelled, AtomicInteger currentNodeNumber) Creates an instance of aBulkProgressrecord class.- Parameters:
totalItems- the value for thetotalItemsrecord componentprocessId- the value for theprocessIdrecord componentcancelled- the value for thecancelledrecord componentcurrentNodeNumber- the value for thecurrentNodeNumberrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
totalItems
public long totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
processId
Returns the value of theprocessIdrecord component.- Returns:
- the value of the
processIdrecord component
-
cancelled
Returns the value of thecancelledrecord component.- Returns:
- the value of the
cancelledrecord component
-
currentNodeNumber
Returns the value of thecurrentNodeNumberrecord component.- Returns:
- the value of the
currentNodeNumberrecord component
-