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 thecache
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCacheStatsGaugeSet
(com.github.benmanes.caffeine.cache.Cache<?, ?> cache) Creates an instance of aCacheStatsGaugeSet
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.github.benmanes.caffeine.cache.Cache
<?, ?> cache()
Returns the value of thecache
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
cache
private final com.github.benmanes.caffeine.cache.Cache<?,?> cacheThe field for thecache
record component.
-
-
Constructor Details
-
CacheStatsGaugeSet
public CacheStatsGaugeSet(com.github.benmanes.caffeine.cache.Cache<?, ?> cache) Creates an instance of aCacheStatsGaugeSet
record class.- Parameters:
cache
- the value for thecache
record 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 thecache
record component.- Returns:
- the value of the
cache
record component
-