Class CachingPrometheusClient
java.lang.Object
pl.allegro.tech.hermes.management.infrastructure.prometheus.CachingPrometheusClient
- All Implemented Interfaces:
PrometheusClient
-
Field Summary
Fields inherited from interface pl.allegro.tech.hermes.management.infrastructure.prometheus.PrometheusClient
SUBSCRIPTION_QUERY_FORMAT, SUBSCRIPTION_QUERY_FORMAT_STATUS_CODE, TOPIC_QUERY_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionCachingPrometheusClient(PrometheusClient underlyingPrometheusClient, com.google.common.base.Ticker ticker, long cacheTtlInSeconds, long cacheSize) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pl.allegro.tech.hermes.management.infrastructure.prometheus.PrometheusClient
readMetrics
-
Constructor Details
-
CachingPrometheusClient
public CachingPrometheusClient(PrometheusClient underlyingPrometheusClient, com.google.common.base.Ticker ticker, long cacheTtlInSeconds, long cacheSize)
-
-
Method Details
-
readMetrics
- Specified by:
readMetricsin interfacePrometheusClient
-