Tabnine Logo
StatsLoggerProxy.getOrSet
Code IndexAdd Tabnine to your IDE (free)

How to use
getOrSet
method
in
io.pravega.shared.metrics.StatsLoggerProxy

Best Java code snippets using io.pravega.shared.metrics.StatsLoggerProxy.getOrSet (Showing top 4 results out of 315)

origin: pravega/pravega

@Override
public OpStatsLogger createStats(String name) {
  return getOrSet(this.opStatsLoggers, name, this.statsLoggerRef.get()::createStats, OpStatsLoggerProxy::new);
}
origin: pravega/pravega

@Override
public Counter createCounter(String name) {
  return getOrSet(this.counters, name, this.statsLoggerRef.get()::createCounter, CounterProxy::new);
}
origin: pravega/pravega

@Override
public Meter createMeter(String name) {
  return getOrSet(this.meters, name, this.statsLoggerRef.get()::createMeter, MeterProxy::new);
}
origin: pravega/pravega

@Override
public <T extends Number> Gauge registerGauge(String name, Supplier<T> value) {
  return getOrSet(this.gauges, name,
      metricName -> this.statsLoggerRef.get().registerGauge(metricName, value),
      (metric, proxyName, c) -> new GaugeProxy(metric, proxyName, value, c));
}
io.pravega.shared.metricsStatsLoggerProxygetOrSet

Javadoc

Atomically gets an existing MetricProxy from the given cache or creates a new one and adds it.

Popular methods of StatsLoggerProxy

  • <init>
  • setLogger
  • createCounter
  • createMeter
  • createStats
  • registerGauge

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now