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

com.github.rbuck.retry.RetryStrategy Maven / Gradle / Ivy

Go to download

Lets developers make their applications more resilient by adding robust transient fault handling logic. Transient faults are errors that occur because of some temporary condition such as network connectivity issues or service unavailability. Typically, if you retry the operation that resulted in a transient error a short time later, you find that the error has disappeared.

There is a newer version: 1.2
Show newest version
package com.github.rbuck.retry;

/**
 * Interface for a retry strategy.
 *
 * @author Robert Buck ([email protected])
 */
public interface RetryStrategy {

    /**
     * Implements the retry policy.
     *
     * @return true if more retries are permitted, otherwise false
     */
    boolean permitsRetry();

    /**
     * Get the retry interval to sleep for.
     *
     * @return the retry interval in milliseconds
     */
    long getRetryDelay();

    /**
     * Gets the current retry count.
     */
    int getRetryCount();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy