Tabnine Logo
HermesMetrics.maxRateFetchFailuresCounter
Code IndexAdd Tabnine to your IDE (free)

How to use
maxRateFetchFailuresCounter
method
in
pl.allegro.tech.hermes.common.metric.HermesMetrics

Best Java code snippets using pl.allegro.tech.hermes.common.metric.HermesMetrics.maxRateFetchFailuresCounter (Showing top 2 results out of 315)

origin: allegro/hermes

private Optional<MaxRate> fetchCurrentMaxRate() {
  try {
    return registry.getMaxRate(consumer);
  } catch (Exception e) {
    logger.warn("Encountered problem fetching max rate for {}", consumer);
    metrics.maxRateFetchFailuresCounter(subscription).inc();
    return Optional.empty();
  }
}
origin: pl.allegro.tech.hermes/hermes-consumers

private Optional<MaxRate> fetchCurrentMaxRate() {
  try {
    return registry.getMaxRate(consumer);
  } catch (Exception e) {
    logger.warn("Encountered problem fetching max rate for {}", consumer);
    metrics.maxRateFetchFailuresCounter(subscription).inc();
    return Optional.empty();
  }
}
pl.allegro.tech.hermes.common.metricHermesMetricsmaxRateFetchFailuresCounter

Popular methods of HermesMetrics

  • counter
  • meter
  • timer
  • consumerErrorsOtherMeter
  • escapeDots
  • latencyTimer
  • registerGauge
  • consumerErrorsTimeoutMeter
  • consumersWorkloadRebalanceDurationTimer
  • decrementInflightCounter
  • incrementInflightCounter
  • inflightTimeHistogram
  • incrementInflightCounter,
  • inflightTimeHistogram,
  • oAuthProviderLatencyTimer,
  • oAuthSubscriptionTokenRequestMeter,
  • rateHistoryFailuresCounter,
  • registerConsumerHttpAnswer,
  • registerConsumersThreadGauge,
  • registerDyingConsumerProcessesCountGauge,
  • registerMaxRateGauge

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
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