Record Class BufferPoolMetrics
java.lang.Object
java.lang.Record
express.mvp.roray.ffm.pool.BufferPoolMetrics
public record BufferPoolMetrics(long totalAcquisitions, long successfulAcquisitions, long failedAcquisitions, long avgWaitTimeNanos, long maxWaitTimeNanos, int currentAvailable, int poolSize)
extends Record
Immutable snapshot of buffer pool performance metrics.
-
Constructor Summary
ConstructorsConstructorDescriptionBufferPoolMetrics(long totalAcquisitions, long successfulAcquisitions, long failedAcquisitions, long avgWaitTimeNanos, long maxWaitTimeNanos, int currentAvailable, int poolSize) Creates an instance of aBufferPoolMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublelongReturns the value of theavgWaitTimeNanosrecord component.intReturns the value of thecurrentAvailablerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedAcquisitionsrecord component.doublefinal inthashCode()Returns a hash code value for this object.doublelongReturns the value of themaxWaitTimeNanosrecord component.intpoolSize()Returns the value of thepoolSizerecord component.longReturns the value of thesuccessfulAcquisitionsrecord component.doubletoString()Returns a string representation of this record class.longReturns the value of thetotalAcquisitionsrecord component.double
-
Constructor Details
-
BufferPoolMetrics
public BufferPoolMetrics(long totalAcquisitions, long successfulAcquisitions, long failedAcquisitions, long avgWaitTimeNanos, long maxWaitTimeNanos, int currentAvailable, int poolSize) Creates an instance of aBufferPoolMetricsrecord class.- Parameters:
totalAcquisitions- the value for thetotalAcquisitionsrecord componentsuccessfulAcquisitions- the value for thesuccessfulAcquisitionsrecord componentfailedAcquisitions- the value for thefailedAcquisitionsrecord componentavgWaitTimeNanos- the value for theavgWaitTimeNanosrecord componentmaxWaitTimeNanos- the value for themaxWaitTimeNanosrecord componentcurrentAvailable- the value for thecurrentAvailablerecord componentpoolSize- the value for thepoolSizerecord component
-
-
Method Details
-
successRate
public double successRate() -
failureRate
public double failureRate() -
utilization
public double utilization() -
avgWaitTimeMillis
public double avgWaitTimeMillis() -
maxWaitTimeMillis
public double maxWaitTimeMillis() -
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. -
totalAcquisitions
public long totalAcquisitions()Returns the value of thetotalAcquisitionsrecord component.- Returns:
- the value of the
totalAcquisitionsrecord component
-
successfulAcquisitions
public long successfulAcquisitions()Returns the value of thesuccessfulAcquisitionsrecord component.- Returns:
- the value of the
successfulAcquisitionsrecord component
-
failedAcquisitions
public long failedAcquisitions()Returns the value of thefailedAcquisitionsrecord component.- Returns:
- the value of the
failedAcquisitionsrecord component
-
avgWaitTimeNanos
public long avgWaitTimeNanos()Returns the value of theavgWaitTimeNanosrecord component.- Returns:
- the value of the
avgWaitTimeNanosrecord component
-
maxWaitTimeNanos
public long maxWaitTimeNanos()Returns the value of themaxWaitTimeNanosrecord component.- Returns:
- the value of the
maxWaitTimeNanosrecord component
-
currentAvailable
public int currentAvailable()Returns the value of thecurrentAvailablerecord component.- Returns:
- the value of the
currentAvailablerecord component
-
poolSize
public int poolSize()Returns the value of thepoolSizerecord component.- Returns:
- the value of the
poolSizerecord component
-