Record Class CacheStatsEntity
java.lang.Object
java.lang.Record
io.micronaut.cache.oracle.persistence.CacheStatsEntity
- Record Components:
cacheName- The cache namehitCount- The cache hit countmissCount- The cache miss countputCount- The cache put countinvalidateCount- The cache invalidate countupdatedAt- The last update time
-
Constructor Summary
ConstructorsConstructorDescriptionCacheStatsEntity(String cacheName, long hitCount, long missCount, long putCount, long invalidateCount, Instant updatedAt) Creates an instance of aCacheStatsEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longhitCount()Returns the value of thehitCountrecord component.longReturns the value of theinvalidateCountrecord component.longReturns the value of themissCountrecord component.longputCount()Returns the value of theputCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
CacheStatsEntity
public CacheStatsEntity(@Id String cacheName, long hitCount, long missCount, long putCount, long invalidateCount, Instant updatedAt) Creates an instance of aCacheStatsEntityrecord class.- Parameters:
cacheName- the value for thecacheNamerecord componenthitCount- the value for thehitCountrecord componentmissCount- the value for themissCountrecord componentputCount- the value for theputCountrecord componentinvalidateCount- the value for theinvalidateCountrecord componentupdatedAt- the value for theupdatedAtrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
cacheName
-
hitCount
-
missCount
-
putCount
-
invalidateCount
@MappedProperty("INVALIDATE_COUNT") public long invalidateCount()Returns the value of theinvalidateCountrecord component.- Returns:
- the value of the
invalidateCountrecord component
-
updatedAt
-