java.lang.Object
io.helidon.pico.api.AbstractMetrics
- All Implemented Interfaces:
Metrics
- Direct Known Subclasses:
DefaultMetrics
@Generated(value="io.helidon.builder.processor.tools.DefaultBuilderCreatorProvider",
comments="version=1")
public abstract class AbstractMetrics
extends Object
implements Metrics
Abstract implementation w/ builder for
Metrics.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractMetrics.Builder<B extends AbstractMetrics.Builder<B,T>, T extends Metrics> Fluent API builder forT. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor using the builder argument. -
Method Summary
Modifier and TypeMethodDescriptionThe map of meta attributes describing each element of this type.The total number ofServices:lookup()calls that were successfully resolved via cache.The total number ofServices::lookup()calls that were attempted against the lookup cache.booleaninthashCode()The total number ofServices::lookup()calls since jvm start, or since last reset.The total service count in the registry.toString()protected StringProduces the inner portion of the toString() output (i.e., what is between the parens).<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.Metrics, calling theAttributeVisitorfor each.
-
Constructor Details
-
AbstractMetrics
Constructor using the builder argument.- Parameters:
b- the builder
-
-
Method Details
-
serviceCount
Description copied from interface:MetricsThe total service count in the registry.- Specified by:
serviceCountin interfaceMetrics- Returns:
- total service count
-
lookupCount
Description copied from interface:MetricsThe total number ofServices::lookup()calls since jvm start, or since last reset.- Specified by:
lookupCountin interfaceMetrics- Returns:
- lookup count
-
cacheLookupCount
Description copied from interface:MetricsThe total number ofServices::lookup()calls that were attempted against the lookup cache. This will be empty if caching is disabled.- Specified by:
cacheLookupCountin interfaceMetrics- Returns:
- cache lookup count
- See Also:
-
cacheHitCount
Description copied from interface:MetricsThe total number ofServices:lookup()calls that were successfully resolved via cache. This will be a value less than or equal toMetrics.cacheLookupCount().- Specified by:
cacheHitCountin interfaceMetrics- Returns:
- cache hit count
-
__metaAttributes
The map of meta attributes describing each element of this type.- Returns:
- the map of meta attributes using the key being the attribute name
-
toString
-
toStringInner
Produces the inner portion of the toString() output (i.e., what is between the parens).- Returns:
- portion of the toString output
-
hashCode
public int hashCode() -
equals
-
visitAttributes
Visits all attributes of io.helidon.pico.api.Metrics, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-