Package fr.becpg.repo.batch
Record Class BatchQueueServiceImpl.BatchCommand.StepOutcome
java.lang.Object
java.lang.Record
fr.becpg.repo.batch.BatchQueueServiceImpl.BatchCommand.StepOutcome
- Enclosing class:
BatchQueueServiceImpl.BatchCommand<T>
private static record BatchQueueServiceImpl.BatchCommand.StepOutcome(long items, long errors, String lastErrorEntryId, String lastError)
extends Record
What a step reported, whichever way it was run.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStepOutcome(long items, long errors, String lastErrorEntryId, String lastError) Creates an instance of aStepOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longerrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.longitems()Returns the value of theitemsrecord component.Returns the value of thelastErrorrecord component.Returns the value of thelastErrorEntryIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
items
private final long itemsThe field for theitemsrecord component. -
errors
private final long errorsThe field for theerrorsrecord component. -
lastErrorEntryId
The field for thelastErrorEntryIdrecord component. -
lastError
The field for thelastErrorrecord component.
-
-
Constructor Details
-
StepOutcome
Creates an instance of aStepOutcomerecord class.- Parameters:
items- the value for theitemsrecord componenterrors- the value for theerrorsrecord componentlastErrorEntryId- the value for thelastErrorEntryIdrecord componentlastError- the value for thelastErrorrecord 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 '=='. -
items
public long items()Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
errors
public long errors()Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-
lastErrorEntryId
Returns the value of thelastErrorEntryIdrecord component.- Returns:
- the value of the
lastErrorEntryIdrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-