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

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

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

origin: allegro/hermes

  private void registerFailureMetrics(Subscription subscription, MessageSendingResult result) {
    if (result.hasHttpAnswer()) {
      hermesMetrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
    }
    else if (result.isTimeout()) {
      hermesMetrics.consumerErrorsTimeoutMeter(subscription).mark();
    }
    else {
      hermesMetrics.consumerErrorsOtherMeter(subscription).mark();
    }
  }
}
origin: pl.allegro.tech.hermes/hermes-consumers

  private void registerFailureMetrics(Subscription subscription, MessageSendingResult result) {
    if (result.hasHttpAnswer()) {
      hermesMetrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
    }
    else if (result.isTimeout()) {
      hermesMetrics.consumerErrorsTimeoutMeter(subscription).mark();
    }
    else {
      hermesMetrics.consumerErrorsOtherMeter(subscription).mark();
    }
  }
}
origin: allegro/hermes

private void markFailed(MessageBatch batch, Subscription subscription, MessageSendingResult result) {
  metrics.meter(Meters.FAILED_METER_SUBSCRIPTION, subscription.getTopicName(), subscription.getName()).mark();
  if (result.hasHttpAnswer()) {
    metrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
  } else if (result.isTimeout()) {
    metrics.consumerErrorsTimeoutMeter(subscription).mark();
  } else {
    metrics.consumerErrorsOtherMeter(subscription).mark();
  }
  batch.getMessagesMetadata().forEach(m -> trackers.get(subscription).logFailed(m, result.getRootCause(), result.getHostname()));
}
origin: pl.allegro.tech.hermes/hermes-consumers

private void markFailed(MessageBatch batch, Subscription subscription, MessageSendingResult result) {
  metrics.meter(Meters.FAILED_METER_SUBSCRIPTION, subscription.getTopicName(), subscription.getName()).mark();
  if (result.hasHttpAnswer()) {
    metrics.registerConsumerHttpAnswer(subscription, result.getStatusCode());
  } else if (result.isTimeout()) {
    metrics.consumerErrorsTimeoutMeter(subscription).mark();
  } else {
    metrics.consumerErrorsOtherMeter(subscription).mark();
  }
  batch.getMessagesMetadata().forEach(m -> trackers.get(subscription).logFailed(m, result.getRootCause(), result.getHostname()));
}
pl.allegro.tech.hermes.common.metricHermesMetricsconsumerErrorsTimeoutMeter

Popular methods of HermesMetrics

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

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
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