Record Class BatchExecutionStats
java.lang.Object
java.lang.Record
com.loomcache.server.handler.BatchExecutionStats
- Record Components:
totalBatches- total number of batches processedtotalOps- total number of operations executedsuccessfulBatches- number of batches that completed successfullyfailedBatches- number of batches that failedavgBatchSize- average number of operations per batchavgExecutionTimeMs- average execution time per batch in milliseconds
public record BatchExecutionStats(long totalBatches, long totalOps, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs)
extends Record
Execution statistics for batch operations.
Immutable record capturing metrics about batch processing operations.
- Since:
- 1.4
-
Constructor Summary
ConstructorsConstructorDescriptionBatchExecutionStats(long totalBatches, long totalOps, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs) Creates an instance of aBatchExecutionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgBatchSizerecord component.doubleReturns the value of theavgExecutionTimeMsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedBatchesrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thesuccessfulBatchesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBatchesrecord component.longtotalOps()Returns the value of thetotalOpsrecord component.
-
Constructor Details
-
BatchExecutionStats
public BatchExecutionStats(long totalBatches, long totalOps, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs) Creates an instance of aBatchExecutionStatsrecord class.- Parameters:
totalBatches- the value for thetotalBatchesrecord componenttotalOps- the value for thetotalOpsrecord componentsuccessfulBatches- the value for thesuccessfulBatchesrecord componentfailedBatches- the value for thefailedBatchesrecord componentavgBatchSize- the value for theavgBatchSizerecord componentavgExecutionTimeMs- the value for theavgExecutionTimeMsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
totalBatches
public long totalBatches()Returns the value of thetotalBatchesrecord component.- Returns:
- the value of the
totalBatchesrecord component
-
totalOps
-
successfulBatches
public long successfulBatches()Returns the value of thesuccessfulBatchesrecord component.- Returns:
- the value of the
successfulBatchesrecord component
-
failedBatches
public long failedBatches()Returns the value of thefailedBatchesrecord component.- Returns:
- the value of the
failedBatchesrecord component
-
avgBatchSize
public double avgBatchSize()Returns the value of theavgBatchSizerecord component.- Returns:
- the value of the
avgBatchSizerecord component
-
avgExecutionTimeMs
public double avgExecutionTimeMs()Returns the value of theavgExecutionTimeMsrecord component.- Returns:
- the value of the
avgExecutionTimeMsrecord component
-