All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bazaarvoice.ostrich.healthcheck.HealthCheckRetryDelay Maven / Gradle / Ivy

package com.bazaarvoice.ostrich.healthcheck;

import com.bazaarvoice.ostrich.HealthCheckResult;

/**
 * Determines delay period for end point health check requests.
 */
public interface HealthCheckRetryDelay {
    /**
     * Get the delay for next health check attempt for an end point.
     *
     * @param numAttempts number of health checks that have been attempted for the end point (>= 1)
     * @param result      most recent health check failure result
     * @return milliseconds to wait for next health check attempt
     */
    public abstract long getDelay(int numAttempts, HealthCheckResult result);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy