Package ch.rswk.meta.engine
Record Class EngineRuntime.CacheStatsGaugeSet
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.EngineRuntime.CacheStatsGaugeSet
- All Implemented Interfaces:
com.codahale.metrics.Metric,com.codahale.metrics.MetricSet
- Enclosing class:
EngineRuntime
public static record EngineRuntime.CacheStatsGaugeSet(com.github.benmanes.caffeine.cache.Cache<?,?> cache)
extends Record
implements com.codahale.metrics.MetricSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.github.benmanes.caffeine.cache.Cache<?, ?> The field for thecacherecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCacheStatsGaugeSet(com.github.benmanes.caffeine.cache.Cache<?, ?> cache) Creates an instance of aCacheStatsGaugeSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.github.benmanes.caffeine.cache.Cache<?, ?> cache()Returns the value of thecacherecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cache
private final com.github.benmanes.caffeine.cache.Cache<?,?> cacheThe field for thecacherecord component.
-
-
Constructor Details
-
CacheStatsGaugeSet
public CacheStatsGaugeSet(com.github.benmanes.caffeine.cache.Cache<?, ?> cache) Creates an instance of aCacheStatsGaugeSetrecord class.- Parameters:
cache- the value for thecacherecord component
-
-
Method Details
-
getMetrics
-
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 withObjects::equals(Object,Object). -
cache
public com.github.benmanes.caffeine.cache.Cache<?,?> cache()Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-