Record Class CacheWriterIntegration.WriteBehindStats
java.lang.Object
java.lang.Record
com.loomcache.server.jcache.CacheWriterIntegration.WriteBehindStats
- Enclosing class:
CacheWriterIntegration<K,V>
public static record CacheWriterIntegration.WriteBehindStats(int pendingWrites, long totalWritten, long totalFailed, double avgBatchSize)
extends Record
Write-behind statistics snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionWriteBehindStats(int pendingWrites, long totalWritten, long totalFailed, double avgBatchSize) Creates an instance of aWriteBehindStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgBatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thependingWritesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalFailedrecord component.longReturns the value of thetotalWrittenrecord component.
-
Constructor Details
-
WriteBehindStats
public WriteBehindStats(int pendingWrites, long totalWritten, long totalFailed, double avgBatchSize) Creates an instance of aWriteBehindStatsrecord class.- Parameters:
pendingWrites- the value for thependingWritesrecord componenttotalWritten- the value for thetotalWrittenrecord componenttotalFailed- the value for thetotalFailedrecord componentavgBatchSize- the value for theavgBatchSizerecord 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. -
pendingWrites
public int pendingWrites()Returns the value of thependingWritesrecord component.- Returns:
- the value of the
pendingWritesrecord component
-
totalWritten
public long totalWritten()Returns the value of thetotalWrittenrecord component.- Returns:
- the value of the
totalWrittenrecord component
-
totalFailed
public long totalFailed()Returns the value of thetotalFailedrecord component.- Returns:
- the value of the
totalFailedrecord component
-
avgBatchSize
public double avgBatchSize()Returns the value of theavgBatchSizerecord component.- Returns:
- the value of the
avgBatchSizerecord component
-