Record Class HoldBulkStatus
java.lang.Object
java.lang.Record
org.alfresco.module.org_alfresco_module_rm.bulk.hold.HoldBulkStatus
- All Implemented Interfaces:
Serializable
public record HoldBulkStatus(String bulkStatusId, Date startTime, Date endTime, long processedItems, long errorsCount, long totalItems, String lastError, boolean isCancelled, String cancellationReason)
extends Record
implements Serializable
An immutable POJO that contains the status of a hold bulk operation
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebulkStatusIdrecord component.Returns the value of thecancellationReasonrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theerrorsCountrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisCancelledrecord component.Returns the value of thelastErrorrecord component.longReturns the value of theprocessedItemsrecord component.Returns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
HoldBulkStatus
public HoldBulkStatus(String bulkStatusId, Date startTime, Date endTime, long processedItems, long errorsCount, long totalItems, String lastError, boolean isCancelled, String cancellationReason) Creates an instance of aHoldBulkStatusrecord class.- Parameters:
bulkStatusId- the value for thebulkStatusIdrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentprocessedItems- the value for theprocessedItemsrecord componenterrorsCount- the value for theerrorsCountrecord componenttotalItems- the value for thetotalItemsrecord componentlastError- the value for thelastErrorrecord componentisCancelled- the value for theisCancelledrecord componentcancellationReason- the value for thecancellationReasonrecord component
-
-
Method Details
-
getStatus
-
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 '=='. -
bulkStatusId
Returns the value of thebulkStatusIdrecord component.- Returns:
- the value of the
bulkStatusIdrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
processedItems
public long processedItems()Returns the value of theprocessedItemsrecord component.- Returns:
- the value of the
processedItemsrecord component
-
errorsCount
public long errorsCount()Returns the value of theerrorsCountrecord component.- Returns:
- the value of the
errorsCountrecord component
-
totalItems
public long totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-
isCancelled
public boolean isCancelled()Returns the value of theisCancelledrecord component.- Returns:
- the value of the
isCancelledrecord component
-
cancellationReason
Returns the value of thecancellationReasonrecord component.- Returns:
- the value of the
cancellationReasonrecord component
-