Interface Metrics

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
Metrics.BuilderBase.MetricsImpl

public interface Metrics extends Prototype.Api
Metrics.
See Also:
  • Method Details

    • builder

      static Metrics.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static Metrics.Builder builder(Metrics instance)
      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

      static Metrics create()
      Create a new instance with default values.
      Returns:
      a new instance
    • serviceCount

      Optional<Integer> serviceCount()
      The total service count in the registry.
      Returns:
      total service count
    • lookupCount

      Optional<Integer> lookupCount()
      The total number of Services::lookup() calls since jvm start, or since last reset.
      Returns:
      lookup count
    • cacheLookupCount

      Optional<Integer> cacheLookupCount()
      The total number of Services::lookup() calls that were attempted against the lookup cache. This will be empty if caching is disabled.
      Returns:
      cache lookup count
      See Also:
    • cacheHitCount

      Optional<Integer> cacheHitCount()
      The total number of Services:lookup() calls that were successfully resolved via cache. This will be a value less than or equal to cacheLookupCount().
      Returns:
      cache hit count