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
    Modifier and Type
    Field
    Description
    private final long
    The field for the errors record component.
    private final long
    The field for the items record component.
    private final String
    The field for the lastError record component.
    private final String
    The field for the lastErrorEntryId record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    StepOutcome(long items, long errors, String lastErrorEntryId, String lastError)
    Creates an instance of a StepOutcome record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the errors record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the items record component.
    Returns the value of the lastError record component.
    Returns the value of the lastErrorEntryId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • items

      private final long items
      The field for the items record component.
    • errors

      private final long errors
      The field for the errors record component.
    • lastErrorEntryId

      private final String lastErrorEntryId
      The field for the lastErrorEntryId record component.
    • lastError

      private final String lastError
      The field for the lastError record component.
  • Constructor Details

    • StepOutcome

      private StepOutcome(long items, long errors, String lastErrorEntryId, String lastError)
      Creates an instance of a StepOutcome record class.
      Parameters:
      items - the value for the items record component
      errors - the value for the errors record component
      lastErrorEntryId - the value for the lastErrorEntryId record component
      lastError - the value for the lastError record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • items

      public long items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component
    • errors

      public long errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component
    • lastErrorEntryId

      public String lastErrorEntryId()
      Returns the value of the lastErrorEntryId record component.
      Returns:
      the value of the lastErrorEntryId record component
    • lastError

      public String lastError()
      Returns the value of the lastError record component.
      Returns:
      the value of the lastError record component