Record Class BatchExecutionHandler.BatchExecutionStats

java.lang.Object
java.lang.Record
com.loomcache.server.handler.BatchExecutionHandler.BatchExecutionStats
Enclosing class:
BatchExecutionHandler

public static record BatchExecutionHandler.BatchExecutionStats(long totalBatchesExecuted, long totalOpsExecuted, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs) extends Record
Batch execution statistics record.
Since:
1.3
  • Constructor Summary

    Constructors
    Constructor
    Description
    BatchExecutionStats(long totalBatchesExecuted, long totalOpsExecuted, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs)
    Creates an instance of a BatchExecutionStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the avgBatchSize record component.
    double
    Returns the value of the avgExecutionTimeMs record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the failedBatches record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the successfulBatches record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalBatchesExecuted record component.
    long
    Returns the value of the totalOpsExecuted record component.

    Methods inherited from class Object

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

    • BatchExecutionStats

      public BatchExecutionStats(long totalBatchesExecuted, long totalOpsExecuted, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs)
      Creates an instance of a BatchExecutionStats record class.
      Parameters:
      totalBatchesExecuted - the value for the totalBatchesExecuted record component
      totalOpsExecuted - the value for the totalOpsExecuted record component
      successfulBatches - the value for the successfulBatches record component
      failedBatches - the value for the failedBatches record component
      avgBatchSize - the value for the avgBatchSize record component
      avgExecutionTimeMs - the value for the avgExecutionTimeMs 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. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      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.
    • totalBatchesExecuted

      public long totalBatchesExecuted()
      Returns the value of the totalBatchesExecuted record component.
      Returns:
      the value of the totalBatchesExecuted record component
    • totalOpsExecuted

      public long totalOpsExecuted()
      Returns the value of the totalOpsExecuted record component.
      Returns:
      the value of the totalOpsExecuted record component
    • successfulBatches

      public long successfulBatches()
      Returns the value of the successfulBatches record component.
      Returns:
      the value of the successfulBatches record component
    • failedBatches

      public long failedBatches()
      Returns the value of the failedBatches record component.
      Returns:
      the value of the failedBatches record component
    • avgBatchSize

      public double avgBatchSize()
      Returns the value of the avgBatchSize record component.
      Returns:
      the value of the avgBatchSize record component
    • avgExecutionTimeMs

      public double avgExecutionTimeMs()
      Returns the value of the avgExecutionTimeMs record component.
      Returns:
      the value of the avgExecutionTimeMs record component