- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
Metrics.BuilderBase.MetricsImpl
Metrics.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forMetrics.static classMetrics.BuilderBase<BUILDER extends Metrics.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends Metrics> Fluent API builder base forMetrics. -
Method Summary
Modifier and TypeMethodDescriptionstatic Metrics.Builderbuilder()Create a new fluent API builder to customize configuration.static Metrics.BuilderCreate a new fluent API builder from an existing instance.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.static Metricscreate()Create a new instance with default values.The total number ofServices::lookup()calls since jvm start, or since last reset.The total service count in the registry.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
serviceCount
The total service count in the registry.- Returns:
- total service count
-
lookupCount
The total number ofServices::lookup()calls since jvm start, or since last reset.- Returns:
- 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:
- 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:
- cache hit count
-