Module io.helidon.inject.api
Package io.helidon.inject.api
Class Metrics.BuilderBase<BUILDER extends Metrics.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Metrics>
java.lang.Object
io.helidon.inject.api.Metrics.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
Metrics.Builder
- Enclosing interface:
Metrics
public abstract static class Metrics.BuilderBase<BUILDER extends Metrics.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Metrics>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
Metrics.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe total number ofServices:lookup()calls that were successfully resolved via cache.cacheHitCount(int cacheHitCount) 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.cacheLookupCount(int cacheLookupCount) The total number ofServices::lookup()calls that were attempted against the lookup cache.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Update this builder from an existing prototype instance.from(Metrics.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The total number ofServices::lookup()calls since jvm start, or since last reset.lookupCount(int lookupCount) The total number ofServices::lookup()calls since jvm start, or since last reset.protected voidHandles providers and decorators.The total service count in the registry.serviceCount(int serviceCount) The total service count in the registry.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
clearServiceCount
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
serviceCount
The total service count in the registry.- Parameters:
serviceCount- total service count- Returns:
- updated builder instance
- See Also:
-
clearLookupCount
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
lookupCount
The total number ofServices::lookup()calls since jvm start, or since last reset.- Parameters:
lookupCount- lookup count- Returns:
- updated builder instance
- See Also:
-
clearCacheLookupCount
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
cacheLookupCount
The total number ofServices::lookup()calls that were attempted against the lookup cache. This will be empty if caching is disabled.- Parameters:
cacheLookupCount- cache lookup count- Returns:
- updated builder instance
- See Also:
-
clearCacheHitCount
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
cacheHitCount
The total number ofServices:lookup()calls that were successfully resolved via cache. This will be a value less than or equal tocacheLookupCount().- Parameters:
cacheHitCount- cache hit count- Returns:
- updated builder instance
- See Also:
-
serviceCount
The total service count in the registry.- Returns:
- the service count
-
lookupCount
The total number ofServices::lookup()calls since jvm start, or since last reset.- Returns:
- the lookup count
-
cacheLookupCount
The total number ofServices::lookup()calls that were attempted against the lookup cache. This will be empty if caching is disabled.- Returns:
- the cache lookup count
- See Also:
-
cacheHitCount
The total number ofServices:lookup()calls that were successfully resolved via cache. This will be a value less than or equal tocacheLookupCount().- Returns:
- the cache hit count
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-