Package com.linkedin.venice.meta
Class RetryManager
java.lang.Object
com.linkedin.venice.meta.RetryManager
-
Constructor Summary
ConstructorDescriptionRetryManager
(io.tehuti.metrics.MetricsRepository metricsRepository, String metricNamePrefix, long enforcementWindowInMs, double retryBudgetInPercentDecimal, Clock clock, ScheduledExecutorService scheduler) RetryManager
(io.tehuti.metrics.MetricsRepository metricsRepository, String metricNamePrefix, long enforcementWindowInMs, double retryBudgetInPercentDecimal, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isRetryAllowed
(int numberOfRetries) void
void
recordRequests
(int requests)
-
Constructor Details
-
RetryManager
public RetryManager(io.tehuti.metrics.MetricsRepository metricsRepository, String metricNamePrefix, long enforcementWindowInMs, double retryBudgetInPercentDecimal, Clock clock, ScheduledExecutorService scheduler) -
RetryManager
public RetryManager(io.tehuti.metrics.MetricsRepository metricsRepository, String metricNamePrefix, long enforcementWindowInMs, double retryBudgetInPercentDecimal, ScheduledExecutorService scheduler)
-
-
Method Details
-
recordRequest
public void recordRequest() -
recordRequests
public void recordRequests(int requests) -
isRetryAllowed
public boolean isRetryAllowed() -
isRetryAllowed
public boolean isRetryAllowed(int numberOfRetries) -
getRetryTokenBucket
-