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

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

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

origin: allegro/hermes

private void verifyLatencyTimersCountedTimes(int timeCount, int closeCount) {
  verify(hermesMetrics, times(1)).latencyTimer(subscription);
  verify(consumerLatencyTimer, times(timeCount)).time();
  verify(consumerLatencyTimerContext, times(closeCount)).stop();
}
origin: allegro/hermes

public ConsumerMessageSender(Subscription subscription,
               MessageSenderFactory messageSenderFactory,
               List<SuccessHandler> successHandlers,
               List<ErrorHandler> errorHandlers,
               SerialConsumerRateLimiter rateLimiter,
               ExecutorService deliveryReportingExecutor,
               InflightsPool inflight,
               HermesMetrics hermesMetrics,
               int asyncTimeoutMs,
               FutureAsyncTimeout<MessageSendingResult> futureAsyncTimeout) {
  this.deliveryReportingExecutor = deliveryReportingExecutor;
  this.successHandlers = successHandlers;
  this.errorHandlers = errorHandlers;
  this.rateLimiter = rateLimiter;
  this.messageSenderFactory = messageSenderFactory;
  this.messageSender = messageSenderFactory.create(subscription);
  this.subscription = subscription;
  this.inflight = inflight;
  this.async = futureAsyncTimeout;
  this.requestTimeoutMs = subscription.getSerialSubscriptionPolicy().getRequestTimeout();
  this.asyncTimeoutMs = asyncTimeoutMs;
  this.consumerLatencyTimer = hermesMetrics.latencyTimer(subscription);
}
origin: allegro/hermes

private void setUpMetrics(Subscription subscription) {
  when(hermesMetrics.latencyTimer(subscription)).thenReturn(consumerLatencyTimer);
  when(hermesMetrics.consumerErrorsOtherMeter(subscription)).thenReturn(errors);
  when(consumerLatencyTimer.time()).thenReturn(consumerLatencyTimerContext);
  when(hermesMetrics.meter(Meters.FAILED_METER_SUBSCRIPTION, subscription.getTopicName(), subscription.getName())).thenReturn(failedMeter);
}
origin: pl.allegro.tech.hermes/hermes-consumers

public ConsumerMessageSender(Subscription subscription,
               MessageSenderFactory messageSenderFactory,
               List<SuccessHandler> successHandlers,
               List<ErrorHandler> errorHandlers,
               SerialConsumerRateLimiter rateLimiter,
               ExecutorService deliveryReportingExecutor,
               InflightsPool inflight,
               HermesMetrics hermesMetrics,
               int asyncTimeoutMs,
               FutureAsyncTimeout<MessageSendingResult> futureAsyncTimeout) {
  this.deliveryReportingExecutor = deliveryReportingExecutor;
  this.successHandlers = successHandlers;
  this.errorHandlers = errorHandlers;
  this.rateLimiter = rateLimiter;
  this.messageSenderFactory = messageSenderFactory;
  this.messageSender = messageSenderFactory.create(subscription);
  this.subscription = subscription;
  this.inflight = inflight;
  this.async = futureAsyncTimeout;
  this.requestTimeoutMs = subscription.getSerialSubscriptionPolicy().getRequestTimeout();
  this.asyncTimeoutMs = asyncTimeoutMs;
  this.consumerLatencyTimer = hermesMetrics.latencyTimer(subscription);
}
pl.allegro.tech.hermes.common.metricHermesMetricslatencyTimer

Popular methods of HermesMetrics

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

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Best plugins for Eclipse
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