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
ConstructorsConstructorDescriptionBatchExecutionStats(long totalBatchesExecuted, long totalOpsExecuted, 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 thetotalBatchesExecutedrecord component.longReturns the value of thetotalOpsExecutedrecord component.
-
Constructor Details
-
BatchExecutionStats
public BatchExecutionStats(long totalBatchesExecuted, long totalOpsExecuted, long successfulBatches, long failedBatches, double avgBatchSize, double avgExecutionTimeMs) Creates an instance of aBatchExecutionStatsrecord class.- Parameters:
totalBatchesExecuted- the value for thetotalBatchesExecutedrecord componenttotalOpsExecuted- the value for thetotalOpsExecutedrecord 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. -
totalBatchesExecuted
public long totalBatchesExecuted()Returns the value of thetotalBatchesExecutedrecord component.- Returns:
- the value of the
totalBatchesExecutedrecord component
-
totalOpsExecuted
public long totalOpsExecuted()Returns the value of thetotalOpsExecutedrecord component.- Returns:
- the value of the
totalOpsExecutedrecord component
-
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
-